Rename 'new_inventory'

This commit is contained in:
Sainan 2024-12-23 01:36:15 +01:00
parent 8c51e443af
commit f7dcb4ed8a

View File

@ -1,5 +1,5 @@
import { Inventory } from "@/src/models/inventoryModels/inventoryModel"; import { Inventory } from "@/src/models/inventoryModels/inventoryModel";
import new_inventory from "@/static/fixed_responses/postTutorialInventory.json"; import postTutorialInventory from "@/static/fixed_responses/postTutorialInventory.json";
import { config } from "@/src/services/configService"; import { config } from "@/src/services/configService";
import { Types } from "mongoose"; import { Types } from "mongoose";
import { SlotNames, IInventoryChanges, IBinChanges } from "@/src/types/purchaseTypes"; import { SlotNames, IInventoryChanges, IBinChanges } from "@/src/types/purchaseTypes";
@ -54,7 +54,7 @@ export const createInventory = async (
accountOwnerId: accountOwnerId, accountOwnerId: accountOwnerId,
LoadOutPresets: defaultItemReferences.loadOutPresetId, LoadOutPresets: defaultItemReferences.loadOutPresetId,
Ships: [defaultItemReferences.ship], Ships: [defaultItemReferences.ship],
...new_inventory ...postTutorialInventory
}) })
: new Inventory({ : new Inventory({
accountOwnerId: accountOwnerId, accountOwnerId: accountOwnerId,