fix: remove through.updateAssociations

This commit is contained in:
chenos 2021-01-03 10:55:25 +08:00
parent ad4eabd569
commit 10b2199e54

View File

@ -387,7 +387,8 @@ export async function update(ctx: Context, next: Next) {
}, },
transaction transaction
}); });
await through.updateAssociations(throughValues, options); // TODO: 中间表的 Model 有问题,关联数据更新有 BUG
// await through.updateAssociations(throughValues, options);
await through.update(throughValues, options); await through.update(throughValues, options);
delete values[throughName]; delete values[throughName];
} }