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

This commit is contained in:
Sainan 2025-04-05 03:41:24 +02:00
parent 0a8f2b9559
commit 774d16950a

View File

@ -1,10 +1,6 @@
import { import { Inventory, TInventoryDatabaseDocument } from "@/src/models/inventoryModels/inventoryModel";
Inventory,
InventoryDocumentProps,
TInventoryDatabaseDocument
} from "@/src/models/inventoryModels/inventoryModel";
import { config } from "@/src/services/configService"; 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 { SlotNames, IInventoryChanges, IBinChanges, slotNames } from "@/src/types/purchaseTypes";
import { import {
IChallengeProgress, IChallengeProgress,
@ -19,7 +15,6 @@ import {
TEquipmentKey, TEquipmentKey,
IFusionTreasure, IFusionTreasure,
IDailyAffiliations, IDailyAffiliations,
IInventoryDatabase,
IKubrowPetEggDatabase, IKubrowPetEggDatabase,
IKubrowPetEggClient, IKubrowPetEggClient,
ILibraryDailyTaskInfo, ILibraryDailyTaskInfo,
@ -129,7 +124,7 @@ const awakeningRewards = [
]; ];
export const addStartingGear = async ( export const addStartingGear = async (
inventory: HydratedDocument<IInventoryDatabase, InventoryDocumentProps>, inventory: TInventoryDatabaseDocument,
startingGear: TPartialStartingGear | undefined = undefined startingGear: TPartialStartingGear | undefined = undefined
): Promise<IInventoryChanges> => { ): Promise<IInventoryChanges> => {
const { LongGuns, Pistols, Suits, Melee } = startingGear || { const { LongGuns, Pistols, Suits, Melee } = startingGear || {
@ -1375,7 +1370,7 @@ export const addBooster = (ItemType: string, time: number, inventory: TInventory
}; };
export const updateSyndicate = ( export const updateSyndicate = (
inventory: HydratedDocument<IInventoryDatabase, InventoryDocumentProps>, inventory: TInventoryDatabaseDocument,
syndicateUpdate: IMissionInventoryUpdateRequest["AffiliationChanges"] syndicateUpdate: IMissionInventoryUpdateRequest["AffiliationChanges"]
): void => { ): void => {
syndicateUpdate?.forEach(affiliation => { syndicateUpdate?.forEach(affiliation => {