Not working with bulkCreate
fnematov opened this issue · 1 comments
fnematov commented
hi, I use like this
let slugify = require('sequelize-slugify');
slugify.slugifyModel(Nomenclatures, {
source: ['name'],
slugOptions: { lower: true },
overwrite: false,
column: 'slug'
});
In my case slug can not be null
await model.bulkCreate(json_data);
It gives me an error slug can not be null
jarrodconnolly commented
bulkCreate()
should be working, there is a unit test as of #51
https://github.com/jarrodconnolly/sequelize-slugify/blob/main/jest-tests/slug-bulk-update.test.js