fix: properly commit boosters to inventory #1279

Merged
Sainan merged 1 commits from commit-booster into main 2025-03-22 17:35:19 -07:00

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;