diff --git a/k8s/analytics/values-prod.yaml b/k8s/analytics/values-prod.yaml index 5a5bd9e5f0..a2983a6786 100644 --- a/k8s/analytics/values-prod.yaml +++ b/k8s/analytics/values-prod.yaml @@ -8,7 +8,7 @@ images: celeryWorker: eu.gcr.io/airqo-250220/airqo-analytics-celery-worker reportJob: eu.gcr.io/airqo-250220/airqo-analytics-report-job devicesSummaryJob: eu.gcr.io/airqo-250220/airqo-analytics-devices-summary-job - tag: prod-ef270c8e-1729603111 + tag: prod-d58d02be-1729614498 api: name: airqo-analytics-api label: analytics-api diff --git a/k8s/auth-service/values-prod.yaml b/k8s/auth-service/values-prod.yaml index 31a60f65c7..d924926178 100644 --- a/k8s/auth-service/values-prod.yaml +++ b/k8s/auth-service/values-prod.yaml @@ -6,7 +6,7 @@ app: replicaCount: 3 image: repository: eu.gcr.io/airqo-250220/airqo-auth-api - tag: prod-ef270c8e-1729603111 + tag: prod-d58d02be-1729614498 nameOverride: '' fullnameOverride: '' podAnnotations: {} diff --git a/k8s/device-registry/values-prod.yaml b/k8s/device-registry/values-prod.yaml index 8bb79152bd..848c8c0153 100644 --- a/k8s/device-registry/values-prod.yaml +++ b/k8s/device-registry/values-prod.yaml @@ -6,7 +6,7 @@ app: replicaCount: 3 image: repository: eu.gcr.io/airqo-250220/airqo-device-registry-api - tag: prod-ef270c8e-1729603111 + tag: prod-d58d02be-1729614498 nameOverride: '' fullnameOverride: '' podAnnotations: {} diff --git a/k8s/exceedance/values-prod-airqo.yaml b/k8s/exceedance/values-prod-airqo.yaml index 526745aecd..d571cf40c4 100644 --- a/k8s/exceedance/values-prod-airqo.yaml +++ b/k8s/exceedance/values-prod-airqo.yaml @@ -4,6 +4,6 @@ app: configmap: env-exceedance-production image: repository: eu.gcr.io/airqo-250220/airqo-exceedance-job - tag: prod-ef270c8e-1729603111 + tag: prod-d58d02be-1729614498 nameOverride: '' fullnameOverride: '' diff --git a/k8s/exceedance/values-prod-kcca.yaml b/k8s/exceedance/values-prod-kcca.yaml index 8117c88474..23b95b6ef2 100644 --- a/k8s/exceedance/values-prod-kcca.yaml +++ b/k8s/exceedance/values-prod-kcca.yaml @@ -4,6 +4,6 @@ app: configmap: env-exceedance-production image: repository: eu.gcr.io/airqo-250220/kcca-exceedance-job - tag: prod-ef270c8e-1729603111 + tag: prod-d58d02be-1729614498 nameOverride: '' fullnameOverride: '' diff --git a/k8s/predict/values-prod.yaml b/k8s/predict/values-prod.yaml index 798f6ee7af..fe566878d7 100644 --- a/k8s/predict/values-prod.yaml +++ b/k8s/predict/values-prod.yaml @@ -7,7 +7,7 @@ images: predictJob: eu.gcr.io/airqo-250220/airqo-predict-job trainJob: eu.gcr.io/airqo-250220/airqo-train-job predictPlaces: eu.gcr.io/airqo-250220/airqo-predict-places-air-quality - tag: prod-ef270c8e-1729603111 + tag: prod-d58d02be-1729614498 api: name: airqo-prediction-api label: prediction-api diff --git a/k8s/spatial/values-prod.yaml b/k8s/spatial/values-prod.yaml index de0372293f..f2ad886421 100644 --- a/k8s/spatial/values-prod.yaml +++ b/k8s/spatial/values-prod.yaml @@ -6,7 +6,7 @@ app: replicaCount: 3 image: repository: eu.gcr.io/airqo-250220/airqo-spatial-api - tag: prod-ef270c8e-1729603111 + tag: prod-d58d02be-1729614498 nameOverride: '' fullnameOverride: '' podAnnotations: {} diff --git a/k8s/workflows/values-prod.yaml b/k8s/workflows/values-prod.yaml index e5cbcef084..e98cc097ce 100644 --- a/k8s/workflows/values-prod.yaml +++ b/k8s/workflows/values-prod.yaml @@ -10,7 +10,7 @@ images: initContainer: eu.gcr.io/airqo-250220/airqo-workflows-xcom redisContainer: eu.gcr.io/airqo-250220/airqo-redis containers: eu.gcr.io/airqo-250220/airqo-workflows - tag: prod-ef270c8e-1729603111 + tag: prod-d58d02be-1729614498 nameOverride: '' fullnameOverride: '' podAnnotations: {} diff --git a/src/auth-service/middleware/validateSelectedSites.js b/src/auth-service/middleware/validateSelectedSites.js index 3bed35768f..0df8319388 100644 --- a/src/auth-service/middleware/validateSelectedSites.js +++ b/src/auth-service/middleware/validateSelectedSites.js @@ -52,9 +52,9 @@ const validateSelectedSites = (requiredFields, allowId = false) => { siteErrors.push("_id must be a valid MongoDB ObjectId"); } - // Validate _id if allowed + // Validate site_id if allowed if (!allowId && site.site_id && !isMongoId(site.site_id)) { - siteErrors.push("_id must be a valid MongoDB ObjectId"); + siteErrors.push("site_id must be a valid MongoDB ObjectId"); } // Validate latitude