This commit is contained in:
Bright 2024-11-15 16:36:16 +07:00
commit f8bbbcfb99

View file

@ -72,6 +72,7 @@ function createConsumer( //----> consumer
}
async function handler(msg: amqp.ConsumeMessage): Promise<boolean> {
console.log(msg ? "[AMQ] on handler" : "[AMQ] don't handler");
//----> condition before process consumer
const repo = AppDataSource.getRepository(Command);
const { data, token, user } = JSON.parse(msg.content.toString());