From c865c63f14c26929c3634e5d0cfe3858065e0e7c Mon Sep 17 00:00:00 2001 From: chenos Date: Sat, 27 Mar 2021 15:50:55 +0800 Subject: [PATCH] fix: update model associations --- packages/actions/src/actions/common.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/actions/src/actions/common.ts b/packages/actions/src/actions/common.ts index 069cdbd7a..9f8233923 100644 --- a/packages/actions/src/actions/common.ts +++ b/packages/actions/src/actions/common.ts @@ -16,6 +16,8 @@ async function hasManyGet(instances, options: any = {}) { const where = {}; let Model = this.target; + Model = Model.database.getModel(Model.name); + let instance; let values;