Skip to content

Commit

Permalink
fix: async check notify
Browse files Browse the repository at this point in the history
  • Loading branch information
DIY0R committed Jul 4, 2024
1 parent b1bd655 commit 789d3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rmq.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class RmqService implements OnModuleInit, OnModuleDestroy {
message: IMessage,
options?: Options.Publish,
): Promise<INotifyReply> {
this.initializationCheck();
await this.initializationCheck();
return new Promise(async (resolve, reject) => {
const confirmationFunction = (err: any, ok: Replies.Empty) => {
if (err !== null) return reject(NACKED);
Expand Down

0 comments on commit 789d3f6

Please sign in to comment.