返回提交历史
Modified
src/controllers/api/gildWeaponController.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
chore: fix unsafe assignment of `any` value warning
1c436d94
代码差异
1 个文件
+1
-1
@@ -26,7 +26,7 @@ interface IGildWeaponRequest {
26
26
27
27
export const gildWeaponController: RequestHandler = async (req, res) => {
28
28
const accountId = await getAccountIdForRequest(req);
29
const data: IGildWeaponRequest = getJSONfromString(String(req.body));
29
const data = getJSONfromString(String(req.body)) as IGildWeaponRequest;
30
30
data.ItemId = String(req.query.ItemId);
31
31
if (!modularWeaponCategory.includes(req.query.Category as WeaponTypeInternal | "Hoverboards")) {
32
32
throw new Error(`Unknown modular weapon Category: ${req.query.Category}`);