Fix error when saving models in transaction when it needs a full update
This commit is contained in:
parent
fec607da20
commit
3a473dd24e
@ -116,7 +116,7 @@ export default abstract class Model {
|
|||||||
const result = await this._factory.select()
|
const result = await this._factory.select()
|
||||||
.where('id', this.id!)
|
.where('id', this.id!)
|
||||||
.limit(1)
|
.limit(1)
|
||||||
.execute();
|
.execute(connection);
|
||||||
this.updateWithData(result.results[0]);
|
this.updateWithData(result.results[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user