chore: log missionInventoryUpdate request body
All checks were successful
Build / build (20) (push) Successful in 33s
Build / build (22) (push) Successful in 1m1s
Build / build (18) (pull_request) Successful in 34s
Build / build (20) (pull_request) Successful in 1m1s
Build / build (22) (pull_request) Successful in 58s
Build / build (18) (push) Successful in 1m2s
All checks were successful
Build / build (20) (push) Successful in 33s
Build / build (22) (push) Successful in 1m1s
Build / build (18) (pull_request) Successful in 34s
Build / build (20) (pull_request) Successful in 1m1s
Build / build (22) (pull_request) Successful in 58s
Build / build (18) (push) Successful in 1m2s
there's still so much uncertainty about this, this is vital information to have logged by default, imo
This commit is contained in:
parent
0e7c124d26
commit
1a446a42a6
@ -5,6 +5,7 @@ import { IMissionInventoryUpdateRequest } from "@/src/types/requestTypes";
|
|||||||
import { addMissionInventoryUpdates, addMissionRewards } from "@/src/services/missionInventoryUpdateService";
|
import { addMissionInventoryUpdates, addMissionRewards } from "@/src/services/missionInventoryUpdateService";
|
||||||
import { getInventory } from "@/src/services/inventoryService";
|
import { getInventory } from "@/src/services/inventoryService";
|
||||||
import { getInventoryResponse } from "./inventoryController";
|
import { getInventoryResponse } from "./inventoryController";
|
||||||
|
import { logger } from "@/src/utils/logger";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
**** INPUT ****
|
**** INPUT ****
|
||||||
@ -50,6 +51,7 @@ import { getInventoryResponse } from "./inventoryController";
|
|||||||
export const missionInventoryUpdateController: RequestHandler = async (req, res): Promise<void> => {
|
export const missionInventoryUpdateController: RequestHandler = async (req, res): Promise<void> => {
|
||||||
const accountId = await getAccountIdForRequest(req);
|
const accountId = await getAccountIdForRequest(req);
|
||||||
const missionReport = getJSONfromString<IMissionInventoryUpdateRequest>((req.body as string).toString());
|
const missionReport = getJSONfromString<IMissionInventoryUpdateRequest>((req.body as string).toString());
|
||||||
|
logger.debug("mission report:", missionReport);
|
||||||
|
|
||||||
const inventory = await getInventory(accountId);
|
const inventory = await getInventory(accountId);
|
||||||
const inventoryUpdates = addMissionInventoryUpdates(inventory, missionReport);
|
const inventoryUpdates = addMissionInventoryUpdates(inventory, missionReport);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user