This commit is contained in:
Aurélien Georget 2019-01-24 11:56:21 +01:00
parent 2a62b9d962
commit ce242dfd89

View File

@ -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;