mirror of
https://github.com/status-im/status-github-bot.git
synced 2025-01-27 05:24:57 +00:00
tip-kudos-recipients: Make sure we save the latest lastPayoutProcessingTimestamp
value
This commit is contained in:
parent
2c1d67e829
commit
fdc3677bf3
@ -177,6 +177,7 @@ async function processPendingPayments (robot, data, saveStateAsyncFunc) {
|
||||
|
||||
if (!data.lastPayoutProcessingTimestamp) {
|
||||
data.lastPayoutProcessingTimestamp = (new Date()).getTime() / 1000
|
||||
await saveStateAsyncFunc(data)
|
||||
}
|
||||
|
||||
const now = (new Date()).getTime() / 1000
|
||||
@ -238,6 +239,7 @@ async function processPendingPayments (robot, data, saveStateAsyncFunc) {
|
||||
}
|
||||
|
||||
data.lastPayoutProcessingTimestamp = (new Date()).getTime() / 1000
|
||||
await saveStateAsyncFunc(data)
|
||||
|
||||
robot.log.debug(`Total payments: ${totalPayments} ${tokenID}`)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user