Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
owl352 committed Sep 20, 2024
1 parent 58b4a9c commit 471c7f9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/api/src/dao/ValidatorsDAO.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const PaginatedResultSet = require('../models/PaginatedResultSet')
const SeriesData = require('../models/SeriesData')

module.exports = class ValidatorsDAO {
constructor(knex) {
constructor (knex) {
this.knex = knex
}

Expand Down Expand Up @@ -142,10 +142,10 @@ module.exports = class ValidatorsDAO {

getValidatorStatsByProTxHash = async (proTxHash, timespan) => {
const interval = {
'1h': {offset: '1 hour', step: '5 minute'},
'24h': {offset: '24 hour', step: '2 hour'},
'3d': {offset: '3 day', step: '6 hour'},
'1w': {offset: '1 week', step: '14 hour'}
'1h': { offset: '1 hour', step: '5 minute' },
'24h': { offset: '24 hour', step: '2 hour' },
'3d': { offset: '3 day', step: '6 hour' },
'1w': { offset: '1 week', step: '14 hour' }
}[timespan]

const ranges = this.knex
Expand All @@ -171,6 +171,6 @@ module.exports = class ValidatorsDAO {
blocksCount: parseInt(row.blocks_count)
}
}))
.map(({timestamp, data}) => new SeriesData(timestamp, data))
.map(({ timestamp, data }) => new SeriesData(timestamp, data))
}
}

0 comments on commit 471c7f9

Please sign in to comment.