fix: model update associations with transaction in hook
This commit is contained in:
parent
4e41e630ac
commit
e6f9973531
@ -73,5 +73,5 @@ export default async function (model: CollectionModel, options: any = {}) {
|
|||||||
if (migrate) {
|
if (migrate) {
|
||||||
await model.migrate();
|
await model.migrate();
|
||||||
}
|
}
|
||||||
await model.updateAssociations(defaultValues);
|
await model.updateAssociations(defaultValues, options);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user