fix: update model associations

This commit is contained in:
chenos 2021-03-27 15:50:55 +08:00
parent 7786f0ad48
commit c865c63f14

View File

@ -16,6 +16,8 @@ async function hasManyGet(instances, options: any = {}) {
const where = {}; const where = {};
let Model = this.target; let Model = this.target;
Model = Model.database.getModel(Model.name);
let instance; let instance;
let values; let values;