Skip to content

Commit

Permalink
fixing TypeError: callback is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
Baalmart committed Feb 26, 2025
1 parent 9ad988f commit 29aba80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/auth-service/utils/token.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,16 @@ let blacklistQueue = async.queue(async (task, callback) => {
.then(() => {
logObject(`🤩🤩 Published IP ${ip} to the "ip-address" topic.`);
// logger.info(`🤩🤩 Published IP ${ip} to the "ip-address" topic.`);
callback();
// callback();
});
await kafkaProducer.disconnect();
callback();
} catch (error) {
logObject("error", error);
// logger.error(
// `🐛🐛 KAFKA Producer Internal Server Error --- IP_ADDRESS: ${ip} --- ${error.message}`
// );
callback();
}
}, 1); // Limit the number of concurrent tasks to 1

Expand Down

0 comments on commit 29aba80

Please sign in to comment.