Skip to content

Commit

Permalink
log tokenExpiresDate
Browse files Browse the repository at this point in the history
  • Loading branch information
glitch003 committed Nov 2, 2024
1 parent 495c909 commit 830bc2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/lit-task-auto-top-up/src/Classes/TaskHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export class TaskHandler {
return true;
}
const tokenExpiresDate = new TZDate(timestamp, 'UTC');
this.logger.log('timestamp from contract', timestamp);
this.logger.log('tokenExpiresDate', tokenExpiresDate);
this.logger.log('tomorrow', tomorrow);
this.logger.log('today', today);
return isSameDay(tokenExpiresDate, tomorrow) || isSameDay(tokenExpiresDate, today);
});
return {
Expand Down

0 comments on commit 830bc2c

Please sign in to comment.