cleaning up

This commit is contained in:
Ben Wilson
2023-06-17 23:36:14 -04:00
parent c167fe9517
commit 916d5f20e6
10 changed files with 101 additions and 144 deletions
@@ -14,9 +14,17 @@ export class AuthorizationMessage extends StratumBaseMessage {
@Expose()
@IsString()
@Transform(({ value, key, obj, type }) => {
return obj.params[0];
return obj.params[0].split('.')[0];
})
public username: string;
public address: string;
@Expose()
@IsString()
@Transform(({ value, key, obj, type }) => {
return obj.params[0].split('.')[1];
})
public worker: string;
@Expose()
@IsString()