mirror of
https://github.com/strapi/strapi.git
synced 2025-11-07 21:58:23 +00:00
Remove integer constraint from the transfer token validation
This commit is contained in:
parent
386579ff66
commit
bec1dfd555
@ -11,7 +11,6 @@ const transferTokenCreationSchema = yup
|
|||||||
permissions: yup.array().of(yup.string()).nullable(),
|
permissions: yup.array().of(yup.string()).nullable(),
|
||||||
lifespan: yup
|
lifespan: yup
|
||||||
.number()
|
.number()
|
||||||
.integer()
|
|
||||||
.min(1)
|
.min(1)
|
||||||
.oneOf(Object.values(constants.TRANSFER_TOKEN_LIFESPANS))
|
.oneOf(Object.values(constants.TRANSFER_TOKEN_LIFESPANS))
|
||||||
.nullable(),
|
.nullable(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user