Closed mdumandag closed 1 year ago
The value of usedTokensAfterUpdate can be greater than the max number of tokens. To not return a negative remaining value we should take max of it with 0 before returning it.
@mdumandag is attempting to deploy a commit to the Upstash Team on Vercel.
A member of the Team first needs to authorize it.
The value of usedTokensAfterUpdate can be greater than the max number of tokens. To not return a negative remaining value we should take max of it with 0 before returning it.