Skip to content

Commit

Permalink
fix: only reset ATG connector status at ATG startup
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
Jérôme Benoit committed Sep 25, 2023
1 parent 1068742 commit 9ceba26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charging-station/AutomaticTransactionGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export class AutomaticTransactionGenerator extends AsyncResource {
delete connectorStatus?.lastRunDate;
delete connectorStatus?.stopDate;
delete connectorStatus?.stoppedDate;
if (connectorStatus?.start === true) {
if (!this.started && connectorStatus?.start === true) {
connectorStatus.start = false;
}
return (
Expand Down

0 comments on commit 9ceba26

Please sign in to comment.