Skip to content

Commit

Permalink
Timeout fix proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
KuphJr committed Jul 18, 2024
1 parent 417f49e commit f7ec558
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/Functions-billing/timeoutRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ task(
})
console.log(`Fetched commitment for request ID ${requestId}`)
if (requestCommitment.timeoutTimestamp < BigInt(Math.round(Date.now() / 1000))) {
requestCommitment.adminFee = 0
requestCommitments.push(requestCommitment)
} else {
console.log(`Request ID ${requestId} has not expired yet (skipping)`)
Expand Down

0 comments on commit f7ec558

Please sign in to comment.