From 5c3ef543226ebe84f5c840dc5f6b8f8de2aa78f4 Mon Sep 17 00:00:00 2001 From: Birdmachine Date: Wed, 5 Jul 2023 16:48:36 -0400 Subject: [PATCH 1/2] Adds send_to_email true to the data passed to the Notify system --- src/src/service/ingest_api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/src/service/ingest_api.js b/src/src/service/ingest_api.js index e9598402..c3931483 100644 --- a/src/src/service/ingest_api.js +++ b/src/src/service/ingest_api.js @@ -543,7 +543,8 @@ export function ingest_api_notify_slack(auth, data) { "Bearer " + auth, "Content-Type": "application/json" } - }; + }; + data.send_to_email = true; // const data = ["data-testing-notificatons","Beep (O v O)!"] let url = `${process.env.REACT_APP_DATAINGEST_API_URL}/notify`; return axios From e75583a846e4fe77a13e4f0086a28c8220218495 Mon Sep 17 00:00:00 2001 From: Birdmachine Date: Wed, 5 Jul 2023 16:54:23 -0400 Subject: [PATCH 2/2] Update comment for labeling the Notify function in the Ingest-API service --- src/src/service/ingest_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/service/ingest_api.js b/src/src/service/ingest_api.js index c3931483..1999f724 100644 --- a/src/src/service/ingest_api.js +++ b/src/src/service/ingest_api.js @@ -533,7 +533,7 @@ export function ingest_api_reorganize_upload(uuid, auth) { }; /* - * Slack Notify + * Notify * */ export function ingest_api_notify_slack(auth, data) {