Merge pull request #1515 from automatisch/queues-js

feat: Convert all queues folder to js files
This commit is contained in:
Ömer Faruk Aydın
2024-01-04 18:30:42 +01:00
committed by GitHub
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();
} }