no need to save when nothing was changed
This commit is contained in:
parent
bda7cea90e
commit
e5e8bb4c4a
@ -16,8 +16,8 @@ export const setBootLocationController: RequestHandler = async (req, res) => {
|
||||
const inventory = await getInventory(accountId);
|
||||
if (inventory.Motorcycles.length == 0) {
|
||||
inventory.Motorcycles.push({ ItemType: "/Lotus/Types/Vehicles/Motorcycle/MotorcyclePowerSuit" });
|
||||
await inventory.save();
|
||||
}
|
||||
await inventory.save();
|
||||
}
|
||||
|
||||
res.end();
|
||||
|
Loading…
x
Reference in New Issue
Block a user