Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
HitomaruKonpaku committed Sep 24, 2024
1 parent a44b207 commit a124ad8
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export abstract class BaseActionHandler<T1 extends HandlerAction, T2 extends Pro
if (this.data.video.isLive && action.timestamp) {
const age = Date.now() - NumberUtil.fromDate(action.timestamp)
const maxAge = (NumberUtil.parse(process.env.YOUTUBE_ACTION_MAX_AGE) || 3600) * 1000
this.logger.warn(`ACTION_TIMESTAMP | ${JSON.stringify({ age, maxAge, valid: age > maxAge, action })}`)
if (age > maxAge) {
return
}
Expand Down

0 comments on commit a124ad8

Please sign in to comment.