feat: Convert all queues folder to js files

This commit is contained in:
Faruk AYDIN
2023-12-28 13:55:28 +01:00
parent 889f6f4935
commit b11781efcf
6 changed files with 6 additions and 6 deletions

View File

@@ -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();
} }

View File

@@ -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();
} }

View File

@@ -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();
} }

View File

@@ -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();
} }

View File

@@ -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();
} }

View File

@@ -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();
} }