fix: properly commit boosters to inventory (#1279)

Reviewed-on: OpenWF/SpaceNinjaServer#1279
This commit is contained in:
Sainan 2025-03-22 17:35:18 -07:00
parent b8e3be5018
commit 4b3b551ba7

View File

@ -1286,7 +1286,7 @@ export const addMissionComplete = (inventory: TInventoryDatabaseDocument, { Tag,
}; };
export const addBooster = (ItemType: string, time: number, inventory: TInventoryDatabaseDocument): void => { export const addBooster = (ItemType: string, time: number, inventory: TInventoryDatabaseDocument): void => {
const currentTime = Math.floor(Date.now() / 1000) - 129600; // Value is wrong without 129600. Figure out why, please. :) const currentTime = Math.floor(Date.now() / 1000);
const { Boosters } = inventory; const { Boosters } = inventory;