remove HydratedDocument
All checks were successful
Build / build (18) (push) Successful in 1m14s
Build / build (22) (push) Successful in 40s
Build / build (20) (push) Successful in 1m15s
Build / build (18) (pull_request) Successful in 45s
Build / build (20) (pull_request) Successful in 1m14s
Build / build (22) (pull_request) Successful in 1m16s
All checks were successful
Build / build (18) (push) Successful in 1m14s
Build / build (22) (push) Successful in 40s
Build / build (20) (push) Successful in 1m15s
Build / build (18) (pull_request) Successful in 45s
Build / build (20) (pull_request) Successful in 1m14s
Build / build (22) (pull_request) Successful in 1m16s
This commit is contained in:
parent
0a8f2b9559
commit
774d16950a
@ -1,10 +1,6 @@
|
||||
import {
|
||||
Inventory,
|
||||
InventoryDocumentProps,
|
||||
TInventoryDatabaseDocument
|
||||
} from "@/src/models/inventoryModels/inventoryModel";
|
||||
import { Inventory, TInventoryDatabaseDocument } from "@/src/models/inventoryModels/inventoryModel";
|
||||
import { config } from "@/src/services/configService";
|
||||
import { HydratedDocument, Types } from "mongoose";
|
||||
import { Types } from "mongoose";
|
||||
import { SlotNames, IInventoryChanges, IBinChanges, slotNames } from "@/src/types/purchaseTypes";
|
||||
import {
|
||||
IChallengeProgress,
|
||||
@ -19,7 +15,6 @@ import {
|
||||
TEquipmentKey,
|
||||
IFusionTreasure,
|
||||
IDailyAffiliations,
|
||||
IInventoryDatabase,
|
||||
IKubrowPetEggDatabase,
|
||||
IKubrowPetEggClient,
|
||||
ILibraryDailyTaskInfo,
|
||||
@ -129,7 +124,7 @@ const awakeningRewards = [
|
||||
];
|
||||
|
||||
export const addStartingGear = async (
|
||||
inventory: HydratedDocument<IInventoryDatabase, InventoryDocumentProps>,
|
||||
inventory: TInventoryDatabaseDocument,
|
||||
startingGear: TPartialStartingGear | undefined = undefined
|
||||
): Promise<IInventoryChanges> => {
|
||||
const { LongGuns, Pistols, Suits, Melee } = startingGear || {
|
||||
@ -1375,7 +1370,7 @@ export const addBooster = (ItemType: string, time: number, inventory: TInventory
|
||||
};
|
||||
|
||||
export const updateSyndicate = (
|
||||
inventory: HydratedDocument<IInventoryDatabase, InventoryDocumentProps>,
|
||||
inventory: TInventoryDatabaseDocument,
|
||||
syndicateUpdate: IMissionInventoryUpdateRequest["AffiliationChanges"]
|
||||
): void => {
|
||||
syndicateUpdate?.forEach(affiliation => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user