Skip to content

Commit

Permalink
Merge pull request #1515 from automatisch/queues-js
Browse files Browse the repository at this point in the history
feat: Convert all queues folder to js files
  • Loading branch information
farukaydin committed Jan 4, 2024
2 parents 7bccbc9 + cbe3db8 commit b693c12
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b693c12

Please sign in to comment.