mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
fix: create rabbitmq queues on set config
This commit is contained in:
parent
9123d7014d
commit
3ea454c7ed
@ -43,6 +43,9 @@ export const getAMQP = (): amqp.Channel | null => {
|
||||
};
|
||||
|
||||
export const initQueues = (instanceName: string, events: string[]) => {
|
||||
console.log('initQueues', instanceName, events);
|
||||
if (!events.length) return;
|
||||
|
||||
const queues = events.map((event) => {
|
||||
return `${event.replace(/_/g, '.').toLowerCase()}`;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user