From 1c436d94661f5943d0441bf4d3a1f8eb420cb995 Mon Sep 17 00:00:00 2001 From: Sainan Date: Mon, 30 Dec 2024 00:06:31 +0100 Subject: [PATCH] chore: fix unsafe assignment of `any` value warning --- src/controllers/api/gildWeaponController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/gildWeaponController.ts b/src/controllers/api/gildWeaponController.ts index 5e3a6ac4..2855893f 100644 --- a/src/controllers/api/gildWeaponController.ts +++ b/src/controllers/api/gildWeaponController.ts @@ -26,7 +26,7 @@ interface IGildWeaponRequest { export const gildWeaponController: RequestHandler = async (req, res) => { const accountId = await getAccountIdForRequest(req); - const data: IGildWeaponRequest = getJSONfromString(String(req.body)); + const data = getJSONfromString(String(req.body)) as IGildWeaponRequest; data.ItemId = String(req.query.ItemId); if (!modularWeaponCategory.includes(req.query.Category as WeaponTypeInternal | "Hoverboards")) { throw new Error(`Unknown modular weapon Category: ${req.query.Category}`);