From 58ea73a116e56f95249904d8642bcede2243e387 Mon Sep 17 00:00:00 2001 From: nyaoouo <64143453+nyaoouo@users.noreply.github.com> Date: Tue, 10 Jun 2025 21:12:49 +0800 Subject: [PATCH] fix logical error --- src/controllers/custom/setBoosterController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/custom/setBoosterController.ts b/src/controllers/custom/setBoosterController.ts index ceb45e30..4da583b0 100644 --- a/src/controllers/custom/setBoosterController.ts +++ b/src/controllers/custom/setBoosterController.ts @@ -25,7 +25,7 @@ export const setBoosterController: RequestHandler = async (req, res) => { } const now = Math.floor(Date.now() / 1000); for (const { ItemType, ExpiryDate } of requests) { - if (ExpiryDate > now) { + if (ExpiryDate < now) { // remove expired boosters const index = boosters.findIndex(item => item.ItemType === ItemType); if (index !== -1) {