default invalid on absent mods to 0

This commit is contained in:
2023-03-22 17:03:21 +01:00
parent 9d235139ab
commit 0fcd5b8113
+1 -1
View File
@@ -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'),