From 6b1b75f1c179af7d31c0ac9d8a1f82b94db367cf Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Wed, 21 Apr 2021 15:04:01 +0000
Subject: [PATCH] ISTWCMS-4786: updating sendgrid settings

---
 config/schema/uw_cfg_common.schema.yml | 6 +++---
 uw_cfg_common.install                  | 3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/config/schema/uw_cfg_common.schema.yml b/config/schema/uw_cfg_common.schema.yml
index 311e3afa..3703b507 100644
--- a/config/schema/uw_cfg_common.schema.yml
+++ b/config/schema/uw_cfg_common.schema.yml
@@ -8,10 +8,10 @@ uw_cfg_common.ldap:
     pwd:
       type: string
       label: 'LDAP password'
-uw_cfg_common.sendgrid:
+sendgrid_integration.settings:
   type: config_object
-  label: 'Sendgrid settings'
+  label: 'Sendgrid settings - API Key'
   mapping:
-    secret_key:
+    apikey:
       type: string
       label: 'API key for sendgrid'
diff --git a/uw_cfg_common.install b/uw_cfg_common.install
index 0a6ef51b..004de253 100644
--- a/uw_cfg_common.install
+++ b/uw_cfg_common.install
@@ -191,9 +191,6 @@ function uw_cfg_common_install() {
     }
     $weight++;
   }
-
-  // ISTWCMS-4786: setting the correct site wide admin email.
-  \Drupal::config('system.site')->setData(['mail' => 'wcmsadmin@uwaterloo.ca']);
 }
 
 /**
-- 
GitLab