Avoid strings concatenation
[e-mobility-charging-stations-simulator.git] / src / scripts / deleteChargingStations.js
index f92cdcf1a7ea0d9573185af3a174a7f161d7108d..4f65bdd3aef1073ecdc9f852a8b86ad5842940bb 100755 (executable)
@@ -20,7 +20,7 @@ if (config && config.mongoConnectionString) {
 
     for await (const tenantID of config.tenantIDs) {
       const response = await db
-        .collection(tenantID + '.chargingstations')
+        .collection(`${tenantID}.chargingstations`)
         .deleteMany({ _id: { $regex: config.idPattern } });
       console.info(
         response.deletedCount,