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'),
body(
[
'servername',
'attacker_id',
'victim_id',
'killstat_version',
@@ -127,6 +126,9 @@ router.post(
.isString()
.isLength({ max: 50 })
.isAscii(),
body('servername',).isString()
.isLength({ max: 100 })
.isAscii(),
body(['distance', 'game_time'], 'must be postitive floats').isFloat({
min: 0
}),