try to default to 0

This commit is contained in:
2023-03-22 17:09:37 +01:00
parent 0fcd5b8113
commit af521a84e3
+1 -1
View File
@@ -72,7 +72,7 @@ router.post(
'victim_offhand_weapon_1',
'victim_offhand_weapon_2'
])
.default(0)
.customSanitizer((value) => value || 0)
.toInt()
.isInt()
.withMessage('must be a valid int'),