chore: fix "member access .toString on any value" warnings #655

Merged
Sainan merged 2 commits from no-tostring into main 2024-12-29 12:41:56 -08:00
Showing only changes of commit 99e9b24153 - Show all commits

View File

@ -49,7 +49,8 @@ const missionInventoryUpdateController: RequestHandler = async (req, res): Promi
const accountId = await getAccountIdForRequest(req);
try {
const lootInventory = getJSONfromString(String(req.body)) as IMissionInventoryUpdateRequest;
// 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);