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;
current_weapon: WeaponKillData;
state: string;
id: number;
id: string;
cloaked: boolean;
};
@@ -50,6 +50,7 @@ export const validateBody =
const result: typia.IValidation<T> = checker(req.body);
if (!result.success) {
res.status(400).send({ errors: result.errors });
console.error(result.errors)
} else {
next();
}