From 5fc463e28fbfe9d93aeec29918e7f82c8462bb50 Mon Sep 17 00:00:00 2001 From: shotaronowhere Date: Wed, 27 Sep 2023 11:12:59 -0700 Subject: [PATCH] fix: update ts --- lib/cron.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cron.ts b/lib/cron.ts index e620136..d5c4cd0 100644 --- a/lib/cron.ts +++ b/lib/cron.ts @@ -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) : "" @@ -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) : ""