Fix error when saving models in transaction when it needs a full update

This commit is contained in:
Alice Gaudon 2020-09-15 15:40:58 +02:00
parent fec607da20
commit 3a473dd24e

View File

@ -116,7 +116,7 @@ export default abstract class Model {
const result = await this._factory.select()
.where('id', this.id!)
.limit(1)
.execute();
.execute(connection);
this.updateWithData(result.results[0]);
}