Skip to content

Commit

Permalink
Apply prettier rules
Browse files Browse the repository at this point in the history
$ yarn pretty
  • Loading branch information
glensc committed Apr 4, 2020
1 parent edbab7e commit ac12679
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions examples/WorkerJobStatusPlugin.ts
Expand Up @@ -39,11 +39,21 @@ export class WorkerJobStatusPlugin {
await this.update(job, this.STATUS_RUNNING);
}

private async onFailure(queue: string, job: any, failure: any, duration: number) {
private async onFailure(
queue: string,
job: any,
failure: any,
duration: number
) {
await this.update(job, this.STATUS_FAILED);
}

private async onSuccess(queue: string, job: any, result: any, duration: number) {
private async onSuccess(
queue: string,
job: any,
result: any,
duration: number
) {
await this.update(job, this.STATUS_COMPLETE, result);
}

Expand All @@ -69,9 +79,9 @@ export class WorkerJobStatusPlugin {

private statusPacket(status: number, result: any) {
return {
"status": status,
"updated": +new Date() / 1000,
"result": result
status: status,
updated: +new Date() / 1000,
result: result,
};
}
}

0 comments on commit ac12679

Please sign in to comment.