fix unused return value of expression

This commit is contained in:
Sainan 2025-01-03 22:28:57 +01:00
parent c0ca5d48f6
commit 947c7a622f

View File

@ -868,7 +868,7 @@ export const addBooster = async (ItemType: string, time: number, accountId: stri
existingBooster.ExpiryDate = Math.max(existingBooster.ExpiryDate, currentTime) + time; existingBooster.ExpiryDate = Math.max(existingBooster.ExpiryDate, currentTime) + time;
inventory.markModified(`Boosters.${itemIndex}.ExpiryDate`); inventory.markModified(`Boosters.${itemIndex}.ExpiryDate`);
} else { } else {
Boosters.push({ ItemType, ExpiryDate: currentTime + time }) - 1; Boosters.push({ ItemType, ExpiryDate: currentTime + time });
} }
await inventory.save(); await inventory.save();