mirror of
https://github.com/strapi/strapi.git
synced 2026-01-07 12:45:45 +00:00
Fixes #2672
This commit is contained in:
parent
2a62b9d962
commit
ce242dfd89
@ -486,7 +486,7 @@ module.exports = {
|
||||
const suffix = key.split('_');
|
||||
// Mysql stores boolean as 1 or 0
|
||||
if (client === 'mysql' && _.get(models, [model, 'attributes', suffix, 'type']) === 'boolean') {
|
||||
formattedValue = value === 'true' ? '1' : '0';
|
||||
formattedValue = value.toString() === 'true' ? '1' : '0';
|
||||
}
|
||||
|
||||
let type;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user