diff --git a/server/migrations/20241111211825-update-lixee-tic-selector_externalId.js b/server/migrations/20241111211825-update-lixee-tic-selector_externalId.js index 00a4d3f950..644122b9f2 100644 --- a/server/migrations/20241111211825-update-lixee-tic-selector_externalId.js +++ b/server/migrations/20241111211825-update-lixee-tic-selector_externalId.js @@ -560,7 +560,7 @@ module.exports = { const featureExternalId = externalId .replace(`${DEVICE_FEATURE_CATEGORIES.ENERGY_SENSOR}`, `${DEVICE_FEATURE_CATEGORIES.TELEINFORMATION}`) .replace(`${DEVICE_FEATURE_TYPES.ENERGY_SENSOR.CURRENT}`, `${DEVICE_FEATURE_TYPES.TELEINFORMATION.IRMS1}`); - + const currentFields = { selector: featureSelector, external_id: featureExternalId, @@ -890,7 +890,7 @@ module.exports = { const featureExternalId = externalId .replace(`${DEVICE_FEATURE_CATEGORIES.ENERGY_SENSOR}`, `${DEVICE_FEATURE_CATEGORIES.TELEINFORMATION}`) .replace(`${DEVICE_FEATURE_TYPES.ENERGY_SENSOR.POWER}`, `${DEVICE_FEATURE_TYPES.TELEINFORMATION.SMAXN}`); - + const currentFields = { selector: featureSelector, external_id: featureExternalId, @@ -956,7 +956,7 @@ module.exports = { const featureExternalId = externalId .replace(`${DEVICE_FEATURE_CATEGORIES.ENERGY_SENSOR}`, `${DEVICE_FEATURE_CATEGORIES.TELEINFORMATION}`) .replace(`${DEVICE_FEATURE_TYPES.ENERGY_SENSOR.POWER}`, `${DEVICE_FEATURE_TYPES.TELEINFORMATION.SINSTS}`); - + const currentFields = { selector: featureSelector, external_id: featureExternalId,