Merge branch 'Web-UI-Add-Boosters' into Playing

This commit is contained in:
nyaoouo 2025-06-10 21:13:05 +08:00
commit cc4ea6b157

View File

@ -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) {