Skip to content

Commit

Permalink
fix(hapi): fix http status constant deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Nov 1, 2022
1 parent 2f16f11 commit eea2324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hapi/src/services/stats.service.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Boom = require('@hapi/boom')
const { BAD_REQUEST } = require('http-status-codes')
const { StatusCodes } = require('http-status-codes')
const moment = require('moment')

const { hasuraUtil, sequelizeUtil, sleepFor, eosUtil } = require('../utils')
Expand Down Expand Up @@ -134,7 +134,7 @@ const getBlockDistribution = async (range = '1 day') => {
} catch (error) {
console.log(error)
throw new Boom.Boom(error.message, {
statusCode: BAD_REQUEST
statusCode: StatusCodes.BAD_REQUEST
})
}
}
Expand Down

0 comments on commit eea2324

Please sign in to comment.