hotfix for servername length

This commit is contained in:
2023-05-02 11:14:45 +02:00
parent 91c22f3ae1
commit a313793b9c
+3 -1
View File
@@ -97,7 +97,6 @@ router.post(
.withMessage('must be a valid float'), .withMessage('must be a valid float'),
body( body(
[ [
'servername',
'attacker_id', 'attacker_id',
'victim_id', 'victim_id',
'killstat_version', 'killstat_version',
@@ -127,6 +126,9 @@ router.post(
.isString() .isString()
.isLength({ max: 50 }) .isLength({ max: 50 })
.isAscii(), .isAscii(),
body('servername',).isString()
.isLength({ max: 100 })
.isAscii(),
body(['distance', 'game_time'], 'must be postitive floats').isFloat({ body(['distance', 'game_time'], 'must be postitive floats').isFloat({
min: 0 min: 0
}), }),