mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: save payee contact to expense transaction.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user