Skip to content

Commit

Permalink
feat: fixed export to use commonjs modules rather than es6
Browse files Browse the repository at this point in the history
  • Loading branch information
Abi-Liu committed Aug 15, 2024
1 parent 0e1843d commit 68717db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Sentry = require('@sentry/node');

const app = express();
const logger = require('./startup/logger');
const globalErrorHandler = require('./utilities/errorHandling/globalErrorHandler').default;
const globalErrorHandler = require('./utilities/errorHandling/globalErrorHandler');

logger.init();

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/errorHandling/globalErrorHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ function globalErrorHandler(err, req, res, next) {
});
}

export default globalErrorHandler;
module.exports = globalErrorHandler;

0 comments on commit 68717db

Please sign in to comment.