fix: properly commit boosters to inventory
All checks were successful
Build / build (20) (push) Successful in 40s
Build / build (18) (pull_request) Successful in 44s
Build / build (20) (pull_request) Successful in 1m9s
Build / build (18) (push) Successful in 1m13s
Build / build (22) (push) Successful in 1m32s
Build / build (22) (pull_request) Successful in 38s
All checks were successful
Build / build (20) (push) Successful in 40s
Build / build (18) (pull_request) Successful in 44s
Build / build (20) (pull_request) Successful in 1m9s
Build / build (18) (push) Successful in 1m13s
Build / build (22) (push) Successful in 1m32s
Build / build (22) (pull_request) Successful in 38s
I have no clue why 36h were being subtracted here, but it was clearly wrong
This commit is contained in:
parent
c6a2785175
commit
c01c00627f
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user