From 10b2199e547e183f7dda88cf20cf5aaca06cf1a6 Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 3 Jan 2021 10:55:25 +0800 Subject: [PATCH] fix: remove through.updateAssociations --- packages/actions/src/actions/common.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/actions/src/actions/common.ts b/packages/actions/src/actions/common.ts index a46418398..8416fb385 100644 --- a/packages/actions/src/actions/common.ts +++ b/packages/actions/src/actions/common.ts @@ -387,7 +387,8 @@ export async function update(ctx: Context, next: Next) { }, transaction }); - await through.updateAssociations(throughValues, options); + // TODO: 中间表的 Model 有问题,关联数据更新有 BUG + // await through.updateAssociations(throughValues, options); await through.update(throughValues, options); delete values[throughName]; }