fix: save payee contact to expense transaction.

This commit is contained in:
a.bouhuolia
2020-12-16 12:23:07 +02:00
parent 76488008c1
commit ddf31feb72
6 changed files with 45 additions and 14 deletions

View File

@@ -205,14 +205,15 @@ export default class EntityRepository {
}
/**
*
* Arbitrary relation graphs can be upserted (insert + update + delete)
* using the upsertGraph method.
* @param graph
* @param options
*/
upsertGraph(graph, options) {
// Keep the input grpah immutable
const graphCloned = cloneDeep(graph);
return this.model.upsertGraph(graphCloned)
return this.model.query().upsertGraph(graphCloned, options)
}
/**