testing init

This commit is contained in:
Ben Wilson
2023-07-14 22:40:36 -04:00
parent f5dad968f6
commit e001383484
12 changed files with 150 additions and 64 deletions
@@ -24,7 +24,7 @@ export class AuthorizationMessage extends StratumBaseMessage {
@IsString()
@MaxLength(64)
@Transform(({ value, key, obj, type }) => {
return obj.params[0].split('.')[1];
return obj.params[0].split('.')[1] == null ? 'worker' : obj.params[0].split('.')[1];
})
public worker: string;