Fixed wrong connector status displayed in transaction in progress
MODIFY
src/storage/mongodb/TransactionStorage.ts
src/storage/mongodb/TransactionStorage.ts
@@ -573,7 +573,7 @@ export default class TransactionStorage {
connector: {
$arrayElemAt: [
'$chargeBox.connectors', {
- $indexOfArray: ['$chargeBox.connectors.connectorId', 1]
+ $indexOfArray: ['$chargeBox.connectors.connectorId', '$connectorId']
}
]
}

Fixed wrong connector status displayed in transaction in progress