fix: after reinitialization, hooks are lost
This commit is contained in:
parent
f24d948f83
commit
96510cc929
@ -220,7 +220,7 @@ export class Table {
|
|||||||
updatedAt: Utils.underscoredIf('updatedAt', underscored),
|
updatedAt: Utils.underscoredIf('updatedAt', underscored),
|
||||||
indexes: Array.from(this.indexes.values()),
|
indexes: Array.from(this.indexes.values()),
|
||||||
// freezeTableName: true,
|
// freezeTableName: true,
|
||||||
hooks: _.get(this.Model.options, 'hooks') || {},
|
hooks: _.get(this.getModel(), 'options.hooks') || {},
|
||||||
...this.modelOptions,
|
...this.modelOptions,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user