hotfix for servername length
This commit is contained in:
@@ -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
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user