fix: remove through.updateAssociations
This commit is contained in:
parent
ad4eabd569
commit
10b2199e54
@ -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];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user