default invalid on absent mods to 0
This commit is contained in:
@@ -72,7 +72,7 @@ router.post(
|
|||||||
'victim_offhand_weapon_1',
|
'victim_offhand_weapon_1',
|
||||||
'victim_offhand_weapon_2'
|
'victim_offhand_weapon_2'
|
||||||
])
|
])
|
||||||
.optional({ checkFalsy: true })
|
.default(0)
|
||||||
.toInt()
|
.toInt()
|
||||||
.isInt()
|
.isInt()
|
||||||
.withMessage('must be a valid int'),
|
.withMessage('must be a valid int'),
|
||||||
|
|||||||
Reference in New Issue
Block a user