Merge branch 'adiDev' into develop
This commit is contained in:
commit
e43b3d0e46
1 changed files with 1 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ function createConsumer( //----> consumer
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handler(msg: amqp.ConsumeMessage): Promise<boolean> {
|
async function handler(msg: amqp.ConsumeMessage): Promise<boolean> {
|
||||||
|
console.log(msg ? "[AMQ] on handler" : "[AMQ] don't handler");
|
||||||
//----> condition before process consumer
|
//----> condition before process consumer
|
||||||
const repo = AppDataSource.getRepository(Command);
|
const repo = AppDataSource.getRepository(Command);
|
||||||
const { data, token, user } = JSON.parse(msg.content.toString());
|
const { data, token, user } = JSON.parse(msg.content.toString());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue