From bd8b3881bb6fae97b8ae9a0428957a9cc5b583bb Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 22 Jun 2024 16:12:54 +0200 Subject: [PATCH] add debug log for missionInventoryUpdate requests --- src/controllers/api/missionInventoryUpdateController.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/api/missionInventoryUpdateController.ts b/src/controllers/api/missionInventoryUpdateController.ts index 008b9a9b..e2723a51 100644 --- a/src/controllers/api/missionInventoryUpdateController.ts +++ b/src/controllers/api/missionInventoryUpdateController.ts @@ -4,6 +4,7 @@ import { combineRewardAndLootInventory, getRewards } from "@/src/services/missio import { getJSONfromString } from "@/src/helpers/stringHelpers"; import { getAccountIdForRequest } from "@/src/services/loginService"; import { IMissionInventoryUpdateRequest } from "@/src/types/requestTypes"; +import { logger } from "@/src/utils/logger"; /* **** INPUT **** - [ ] crossPlaySetting @@ -52,6 +53,8 @@ const missionInventoryUpdateController: RequestHandler = async (req, res): Promi // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call const lootInventory = getJSONfromString(req.body.toString()) as IMissionInventoryUpdateRequest; + logger.debug("missionInventoryUpdate with lootInventory =", lootInventory); + const { InventoryChanges, MissionRewards } = getRewards(lootInventory); const { combinedInventoryChanges, TotalCredits, CreditsBonus, MissionCredits, FusionPoints } =