mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-04-17 00:01:21 +02:00
open stratum base message to accept number or string
This commit is contained in:
parent
3e4cb4ff5d
commit
b858a594b8
@ -3,8 +3,7 @@ import { IsEnum, IsNumber } from 'class-validator';
|
||||
import { eRequestMethod } from '../enums/eRequestMethod';
|
||||
|
||||
export class StratumBaseMessage {
|
||||
@IsNumber()
|
||||
id?: number = null;
|
||||
id?: number | string = null;
|
||||
@IsEnum(eRequestMethod)
|
||||
method: eRequestMethod;
|
||||
}
|
@ -5,7 +5,7 @@ import { eStratumErrorCode } from '../enums/eStratumErrorCode';
|
||||
export class StratumErrorMessage {
|
||||
|
||||
constructor(
|
||||
private id: number = null,
|
||||
private id: number | string = null,
|
||||
private errorCode: eStratumErrorCode,
|
||||
private errorMessage: string,
|
||||
private validationErrors: ValidationError[] = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user