fix unused return value of expression
This commit is contained in:
parent
c0ca5d48f6
commit
947c7a622f
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user