Fix issue with jobs

This commit is contained in:
David Majdandžić
2023-03-29 21:17:53 +02:00
parent 0cd6ec03ba
commit c61ef86a91
2 changed files with 6 additions and 5 deletions

View File

@@ -61,8 +61,12 @@ export class Job {
return new Job({}, 1, 1);
}
serialize(): string {
return JSON.stringify(this);
serialize(): object {
return {
pdu: JSON.stringify(this.pdu),
perSecond: this.perSecond,
count: this.count
};
}
on(event: string, callback: (...args: any[]) => void): void {