👮🏼‍♂️ chokidar support

This commit is contained in:
2021-09-18 09:26:26 -07:00
parent a74ac6464f
commit ece7b99feb
5 changed files with 160 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ import { logger } from "../utils/logger.utils";
const amqp = require("amqplib/callback_api");
const rabbitUrl = "amqp://localhost";
export const sendRabbitMQ = (queueName, data) => {
export const sendToRabbitMQ = (queueName, data) => {
// connect to local rabbitmq instance
amqp.connect(rabbitUrl, (error0, connection) => {
if (error0) {