diff --git a/src/auth-service/utils/token.util.js b/src/auth-service/utils/token.util.js index f8cb0de37f..503fe03376 100644 --- a/src/auth-service/utils/token.util.js +++ b/src/auth-service/utils/token.util.js @@ -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