From 4aa5451bf04e3769c7f46c100a77e16a260f137e Mon Sep 17 00:00:00 2001 From: Amin Latifi Date: Tue, 27 Dec 2022 15:51:55 +0300 Subject: [PATCH 1/2] Updated givback is ready event template / 3 --- migrations/1660716115917-seedNotificationType.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/1660716115917-seedNotificationType.ts b/migrations/1660716115917-seedNotificationType.ts index 8d1d29c..6522d75 100644 --- a/migrations/1660716115917-seedNotificationType.ts +++ b/migrations/1660716115917-seedNotificationType.ts @@ -948,7 +948,7 @@ export const GivethNotificationTypes = { title: 'GIVback', description: 'When GIVback is ready to be claimed after each round', showOnSettingPage: true, - microService: MICRO_SERVICES.givethio, + microService: MICRO_SERVICES.givEconomyNotificationMicroService, category: NOTIFICATION_CATEGORY.GIV_ECONOMY, icon: 'IconGIVBack', schemaValidator: SCHEMA_VALIDATORS_NAMES.GIV_BACK_IS_READY_TO_CLAIM, @@ -980,7 +980,7 @@ export const GivethNotificationTypes = { }, ], content: - 'Your GIVback {amount} GIV is ready to claim! \n{Click here} to take a shortcut.', + 'Your GIVback {amount} GIV is ready to claim! \n[Click here] to take a shortcut.', }, PROJECT_EDITED: { name: 'Project edited', From 94e0e7a79ea5fa81051f8435c2ba0d45450abdc0 Mon Sep 17 00:00:00 2001 From: Amin Latifi Date: Tue, 27 Dec 2022 15:56:27 +0300 Subject: [PATCH 2/2] Updated giback claim is ready tests to match new microservice type --- src/routes/v1/notificationRouter.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/v1/notificationRouter.test.ts b/src/routes/v1/notificationRouter.test.ts index 70411db..6b09e42 100644 --- a/src/routes/v1/notificationRouter.test.ts +++ b/src/routes/v1/notificationRouter.test.ts @@ -1445,7 +1445,7 @@ function sendNotificationTestCases() { const result = await axios.post(sendNotificationUrl, data, { headers: { - authorization: getGivethIoBasicAuth(), + authorization: getGivEconomyBasicAuth(), }, }); assert.equal(result.status, 200); @@ -1468,7 +1468,7 @@ function sendNotificationTestCases() { await axios.post(sendNotificationUrl, data, { headers: { - authorization: getGivethIoBasicAuth(), + authorization: getGivEconomyBasicAuth(), }, }); // If request doesn't fail, it means this test failed