Make device row moves atomic
This commit is contained in:
@@ -334,7 +334,7 @@ export class CircuitWriteService {
|
||||
return this.deviceRowRepository.findById(rowId);
|
||||
}
|
||||
|
||||
this.deviceRowRepository.moveRowsTransactional({
|
||||
this.getDeviceRowTransactionStore().moveRows({
|
||||
rows: [{ id: row.id, expectedCircuitId: row.circuitId }],
|
||||
targetCircuitId: targetCircuit?.id,
|
||||
createTargetCircuit,
|
||||
@@ -415,7 +415,7 @@ export class CircuitWriteService {
|
||||
}
|
||||
}
|
||||
|
||||
return this.deviceRowRepository.moveRowsTransactional({
|
||||
return this.getDeviceRowTransactionStore().moveRows({
|
||||
rows: rows.map((row) => ({ id: row.id, expectedCircuitId: row.circuitId })),
|
||||
targetCircuitId: targetCircuit?.id,
|
||||
createTargetCircuit,
|
||||
|
||||
Reference in New Issue
Block a user