Skip to content

Commit

Permalink
fix: update ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shotaronowhere committed Sep 27, 2023
1 parent 2cbad41 commit 5fc463e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ const update = async (timestampNew: number, timestampLastUpdated: number,botaddr

for (const data of moderationActions.disputesAppeal) {
isUpdated = true
if (data.timestampLastUpdated > timestampUpdated)
timestampUpdated = data.timestampLastUpdated
if (data.timestampLastAppealPossible > timestampUpdated)
timestampUpdated = data.timestampLastAppealPossible
const settings = validate(data.moderationInfo.UserHistory.group.groupID);
const fedNotificationChannel = settings.federation_id ? getFederationChannel(db, 'telegram',settings.federation_id) : ""

Expand Down Expand Up @@ -247,8 +247,8 @@ const update = async (timestampNew: number, timestampLastUpdated: number,botaddr

for (const data of moderationActions.disputesAppealFunded) {
isUpdated = true
if (data.timestampLastUpdated > timestampUpdated)
timestampUpdated = data.timestampLastUpdated
if (data.timestampLastAppealPossible > timestampUpdated)
timestampUpdated = data.timestampLastAppealPossible
const settings = validate(data.moderationInfo.UserHistory.group.groupID);
const fedNotificationChannel = settings.federation_id ? getFederationChannel(db, 'telegram',settings.federation_id) : ""

Expand Down

0 comments on commit 5fc463e

Please sign in to comment.