feat: Convert all queues folder to js files
This commit is contained in:
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
actionQueue.on('error', (err) => {
|
actionQueue.on('error', (err) => {
|
||||||
if ((err as any).code === CONNECTION_REFUSED) {
|
if (err.code === CONNECTION_REFUSED) {
|
||||||
logger.error('Make sure you have installed Redis and it is running.', err);
|
logger.error('Make sure you have installed Redis and it is running.', err);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
deleteUserQueue.on('error', (err) => {
|
deleteUserQueue.on('error', (err) => {
|
||||||
if ((err as any).code === CONNECTION_REFUSED) {
|
if (err.code === CONNECTION_REFUSED) {
|
||||||
logger.error('Make sure you have installed Redis and it is running.', err);
|
logger.error('Make sure you have installed Redis and it is running.', err);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
emailQueue.on('error', (err) => {
|
emailQueue.on('error', (err) => {
|
||||||
if ((err as any).code === CONNECTION_REFUSED) {
|
if (err.code === CONNECTION_REFUSED) {
|
||||||
logger.error('Make sure you have installed Redis and it is running.', err);
|
logger.error('Make sure you have installed Redis and it is running.', err);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
flowQueue.on('error', (err) => {
|
flowQueue.on('error', (err) => {
|
||||||
if ((err as any).code === CONNECTION_REFUSED) {
|
if (err.code === CONNECTION_REFUSED) {
|
||||||
logger.error('Make sure you have installed Redis and it is running.', err);
|
logger.error('Make sure you have installed Redis and it is running.', err);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
@@ -19,7 +19,7 @@ process.on('SIGTERM', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
removeCancelledSubscriptionsQueue.on('error', (err) => {
|
removeCancelledSubscriptionsQueue.on('error', (err) => {
|
||||||
if ((err as any).code === CONNECTION_REFUSED) {
|
if (err.code === CONNECTION_REFUSED) {
|
||||||
logger.error('Make sure you have installed Redis and it is running.', err);
|
logger.error('Make sure you have installed Redis and it is running.', err);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
triggerQueue.on('error', (err) => {
|
triggerQueue.on('error', (err) => {
|
||||||
if ((err as any).code === CONNECTION_REFUSED) {
|
if (err.code === CONNECTION_REFUSED) {
|
||||||
logger.error('Make sure you have installed Redis and it is running.', err);
|
logger.error('Make sure you have installed Redis and it is running.', err);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
Reference in New Issue
Block a user