From 090fda7bb5418bd7fbd356192d90864b68a7423a Mon Sep 17 00:00:00 2001 From: Arturo Reyes Lopez Date: Mon, 20 Jan 2025 15:04:20 -0700 Subject: [PATCH] Always provide an email during migration from TFRS to LCFS --- etl/nifi_scripts/user.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etl/nifi_scripts/user.groovy b/etl/nifi_scripts/user.groovy index 49128e7af..6d3bdb1a6 100644 --- a/etl/nifi_scripts/user.groovy +++ b/etl/nifi_scripts/user.groovy @@ -24,8 +24,8 @@ def userProfileQuery = """ u.id ) AS occurrence, - COALESCE(NULLIF(ucr.keycloak_email, ''), u.email) AS keycloak_email, - COALESCE(NULLIF(u.email, ''), '') AS email, + COALESCE(NULLIF(ucr.keycloak_email, ''), NULLIF(u.email, ''), 'user@gov.bc.ca') AS keycloak_email, + COALESCE(NULLIF(u.email, ''), NULLIF(ucr.keycloak_email, ''), 'user@gov.bc.ca') AS email, u.title, u.phone, u.cell_phone AS mobile_phone,