Skip to content

Commit

Permalink
Merge pull request #263 from credebl/upload-csv-issue
Browse files Browse the repository at this point in the history
fix: added return type for processor functions
  • Loading branch information
nishad-ayanworks authored Nov 15, 2023
2 parents 8ee82c9 + 7ea0476 commit 3c74511
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/issuance/src/issuance.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ export class BulkIssuanceProcessor {
constructor(private readonly issuanceService: IssuanceService) {}

@OnQueueActive()
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
onActive(job: Job) {
onActive(job: Job): void {
this.logger.log(
`Processing job ${job.id} of type ${job.name} with data ${JSON.stringify(job.data)}...`
);
}

@Process('issue-credential')
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
async issueCredential(job: Job<unknown>) {
async issueCredential(job: Job<unknown>):Promise<void> {
this.logger.log(
`Processing job ${job.id} of type ${job.name} with data ${JSON.stringify(job.data)}...`
);
Expand Down

0 comments on commit 3c74511

Please sign in to comment.