mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:45:18 +00:00
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),
|
||||
indexes: Array.from(this.indexes.values()),
|
||||
// freezeTableName: true,
|
||||
hooks: _.get(this.Model.options, 'hooks') || {},
|
||||
hooks: _.get(this.getModel(), 'options.hooks') || {},
|
||||
...this.modelOptions,
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user