Skip to content

Commit

Permalink
Merge pull request #831 from Sanofi-IADC/feature/WEB-2070-tags
Browse files Browse the repository at this point in the history
feat(WEB-2070): WEB-2070 wait for whisp to be written to db
  • Loading branch information
sairam459 authored Apr 8, 2024
2 parents 4ca3f2e + 47df68d commit c8eb2aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/whisp/whisp.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export class WhispResolver {
@Inject('PUB_SUB') private pubSub: PubSubEngine,
) {
this.distributionService.whispSubject.subscribe((whisp) => {
pubSub.publish('whispAdded', { whispAdded: whisp });
setTimeout(() => {
pubSub.publish('whispAdded', { whispAdded: whisp });
}, 1000);
});
}

Expand Down

0 comments on commit c8eb2aa

Please sign in to comment.