fix user id being a string

This commit is contained in:
2023-08-13 10:23:22 +02:00
parent 192f8ce99e
commit 055feb1264
+2 -1
View File
@@ -23,7 +23,7 @@ type PlayerKillData = {
loadout: LoadoutKillData; loadout: LoadoutKillData;
current_weapon: WeaponKillData; current_weapon: WeaponKillData;
state: string; state: string;
id: number; id: string;
cloaked: boolean; cloaked: boolean;
}; };
@@ -50,6 +50,7 @@ export const validateBody =
const result: typia.IValidation<T> = checker(req.body); const result: typia.IValidation<T> = checker(req.body);
if (!result.success) { if (!result.success) {
res.status(400).send({ errors: result.errors }); res.status(400).send({ errors: result.errors });
console.error(result.errors)
} else { } else {
next(); next();
} }