Skip to content

Commit

Permalink
fix: move dayjs.extend to after import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
andqk00 committed Jul 27, 2023
1 parent 3d3d5aa commit 0f77be5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/services/statistics/account_statistics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import config from '../../../config.json' assert { type: 'json' };
import BullableService, { QueueHandler } from '../../base/bullable.service';
import knex from '../../common/utils/db_connection';

dayjs.extend(utc);

@Service({
name: SERVICE.V1.AccountStatisticsService.key,
version: 1,
Expand Down Expand Up @@ -405,8 +407,6 @@ export default class AccountStatisticsService extends BullableService {
}

public async _start() {
dayjs.extend(utc);

return super._start();
}
}
4 changes: 2 additions & 2 deletions src/services/statistics/daily_statistics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import config from '../../../config.json' assert { type: 'json' };
import BullableService, { QueueHandler } from '../../base/bullable.service';
import Utils from '../../common/utils/utils';

dayjs.extend(utc);

@Service({
name: SERVICE.V1.DailyStatisticsService.key,
version: 1,
Expand Down Expand Up @@ -126,8 +128,6 @@ export default class DailyStatisticsService extends BullableService {
}

public async _start() {
dayjs.extend(utc);

return super._start();
}
}

0 comments on commit 0f77be5

Please sign in to comment.