Accept ids equal to 0 as StrapiID

This commit is contained in:
Convly 2020-06-04 14:27:16 +02:00 committed by Alexandre Bodin
parent c398b969a4
commit 248546581f

View File

@ -30,7 +30,7 @@ class StrapiIDSchema extends MixedSchemaType {
}
_typeCheck(value) {
return typeof value === 'string' || (Number.isInteger(value) && value > 0);
return typeof value === 'string' || (Number.isInteger(value) && value >= 0);
}
}