mirror of
https://github.com/strapi/strapi.git
synced 2025-11-09 14:51:29 +00:00
Fix lifecycle callback for Bookshelf
This commit is contained in:
parent
1228cee998
commit
68488ca48c
@ -156,7 +156,7 @@ module.exports = function (strapi) {
|
||||
const done = _.after(_.size(definition.attributes), () => {
|
||||
try {
|
||||
// Initialize lifecycle callbacks.
|
||||
loadedModel.initialize = () => {
|
||||
loadedModel.initialize = function () {
|
||||
const self = this;
|
||||
const lifecycle = {
|
||||
creating: 'beforeCreate',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user