Make initial circuit creation atomic
This commit is contained in:
parent
30c7555c68
commit
a6837d7242
9 changed files with 234 additions and 169 deletions
|
|
@ -164,11 +164,10 @@ export class CircuitWriteService {
|
|||
);
|
||||
}
|
||||
|
||||
const created = this.deviceRowRepository.createCircuitWithDeviceRowsTransactional({
|
||||
const created = this.getDeviceRowTransactionStore().createCircuitWithDeviceRows({
|
||||
circuit: {
|
||||
circuitListId,
|
||||
...input.circuit,
|
||||
isReserve: false,
|
||||
},
|
||||
deviceRows: input.deviceRows,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue