fix user id being a string
This commit is contained in:
+2
-1
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user