Skip to content

Commit cc6451f

Browse files
fix: where clause in plan rollover code
1 parent e960cb4 commit cc6451f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/middleware/rpc_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub async fn refill_calls_and_renew_plans() -> Result<(), RpcAuthErrors> {
115115
created = CURRENT_TIMESTAMP,
116116
expires = CURRENT_TIMESTAMP + INTERVAL '1 months'
117117
WHERE
118-
now() >= expires AND calls > 0"
118+
now() >= expires"
119119
)
120120
.execute(&mut *tx)
121121
.await?;

0 commit comments

Comments
 (0)