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) => {
|
||||
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);
|
||||
process.exit();
|
||||
}
|
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
||||
});
|
||||
|
||||
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);
|
||||
process.exit();
|
||||
}
|
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
||||
});
|
||||
|
||||
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);
|
||||
process.exit();
|
||||
}
|
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
||||
});
|
||||
|
||||
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);
|
||||
process.exit();
|
||||
}
|
@@ -19,7 +19,7 @@ process.on('SIGTERM', async () => {
|
||||
});
|
||||
|
||||
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);
|
||||
process.exit();
|
||||
}
|
@@ -16,7 +16,7 @@ process.on('SIGTERM', async () => {
|
||||
});
|
||||
|
||||
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);
|
||||
process.exit();
|
||||
}
|
Reference in New Issue
Block a user