SoftwareBrothers / adminjs-sequelizejs

Sequelizejs adapter for AdminBro
MIT License
27 stars 34 forks source link

Remove empty string from parsed params for more types #36

Closed bakkerthehacker closed 4 years ago

bakkerthehacker commented 4 years ago

When a column has a non-string type and is nullable (like a nullable date), editing the resource will send an empty string to sequelize. This fails validation for these columns.

Rather than send an empty string, the empty strings are removed for all non-string types (rather than just number, float and reference)

github-actions[bot] commented 4 years ago

:tada: This PR is included in version 0.5.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: