|
@@ -368,6 +368,8 @@ public class MainDbService : IMainDbService
|
|
|
ConfigureSetting = string.IsNullOrEmpty(value) ? string.Empty : value,
|
|
|
Exists = isExists
|
|
|
});
|
|
|
+
|
|
|
+ await db.SaveChangesAsync();
|
|
|
}
|
|
|
|
|
|
private async Task UpdateTransactionEF(int transactionId, int meterStop, DateTime stopTime, int stopReasonId, string stopReason, string stopIdTag, string receipt, int cost)
|
|
@@ -677,6 +679,12 @@ public class MainDbService : IMainDbService
|
|
|
}
|
|
|
bundleHandlerData.AddCompletedData(originKey, g.ToList());
|
|
|
}
|
|
|
+ var getConfigChargeboxIds = gReult.Select(x => x.Key);
|
|
|
+ var emptyConfigChargeboxIds = chargeboxIds.Except(getConfigChargeboxIds);
|
|
|
+ foreach (var chargeboxId in emptyConfigChargeboxIds)
|
|
|
+ {
|
|
|
+ bundleHandlerData.AddCompletedData(chargeboxId, new List<MachineConfigurations>());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private async Task UpdateConnectorStatusEF(string Id, ConnectorStatus Status)
|