fix: model update associations with transaction in hook

This commit is contained in:
chenos 2020-12-07 17:13:42 +08:00
parent 4e41e630ac
commit e6f9973531

View File

@ -73,5 +73,5 @@ export default async function (model: CollectionModel, options: any = {}) {
if (migrate) {
await model.migrate();
}
await model.updateAssociations(defaultValues);
await model.updateAssociations(defaultValues, options);
}