Skip to content

Commit

Permalink
refactor: review
Browse files Browse the repository at this point in the history
  • Loading branch information
phamphong9981 committed Jul 3, 2024
1 parent a511053 commit 70f2335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/evm/erc20.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ export default class Erc20Service extends BullableService {
.first()
.throwIfNotFound()
).time;
const lastUpdatedDate = (await Erc20Statistic.query().max('date').first())
?.max;
const lastUpdatedRecord = await Erc20Statistic.query().max('date').first();
const lastUpdatedDate = lastUpdatedRecord?.max;
if (lastUpdatedDate) {
systemDate.setHours(0, 0, 0, 0);
lastUpdatedDate.setHours(0, 0, 0, 0);
Expand Down

0 comments on commit 70f2335

Please sign in to comment.