Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhdanh27600 committed May 15, 2024
1 parent d8b09d5 commit 47b874c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/queue/rabbit/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const amqp = require('amqplib');
const { logger, isTest } = require('../utils');
const { logger, isTest, isLocal } = require('../utils');
const { postProcessForward } = require('../postProcessForward');
const { isLocal } = require('types/constants');


// RabbitMQ connection URL
Expand Down
2 changes: 2 additions & 0 deletions src/services/queue/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const connectionString =
const queueName = process.env.AZURE_BUS_QUEUE_NAME || '';

const isTest = process.env.NODE_ENV === 'test';
const isLocal = process.env.NEXT_PUBLIC_BUILD_ENV === 'local';

const logger = pino(
{
Expand All @@ -28,5 +29,6 @@ module.exports = {
connectionString,
queueName,
isTest,
isLocal,
logger,
};

0 comments on commit 47b874c

Please sign in to comment.