Skip to content

Commit

Permalink
fix: dont duplicate update doc job
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Nov 8, 2024
1 parent e0fc937 commit eab4911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/did/did.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export class DIDService implements OnModuleInit, OnModuleDestroy {

private async pinDocument(did: string): Promise<void> {
try {
await this.didQueue.add(UPDATE_DID_DOC_JOB_NAME, { did });
await this.didQueue.add(UPDATE_DID_DOC_JOB_NAME, { did }, { jobId: did });
} catch (e) {
this.logger.warn(
`Error to add DID synchronization job for document ${did}: ${e}`
Expand Down

0 comments on commit eab4911

Please sign in to comment.