Skip to content

Commit

Permalink
fixups post reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 14, 2024
1 parent f818079 commit 7c957f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/monitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const metricsCount = (promClient.register.getSingleMetric('count_items_metricsCo
function _writeResponse(res, error) {
let statusCode = 200;
if (error) {
if (Number.isInteger(error.code)) {
if (error instanceof errors.ArsenalError && Number.isInteger(error.code)) {
statusCode = error.code;
} else {
statusCode = 500;
Expand Down

0 comments on commit 7c957f3

Please sign in to comment.