fix: update model associations
This commit is contained in:
parent
7786f0ad48
commit
c865c63f14
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user