From b83cb5fa509dce74dff1c1cc1da4f27c1271cff8 Mon Sep 17 00:00:00 2001 From: Bing Wen Tan Date: Sun, 2 Jun 2024 11:35:25 +0800 Subject: [PATCH] include secret --- .../src/definitions/eventHandlers/onVoteRequestUpdate.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/src/definitions/eventHandlers/onVoteRequestUpdate.ts b/functions/src/definitions/eventHandlers/onVoteRequestUpdate.ts index 26b28e9d..6ef3b246 100644 --- a/functions/src/definitions/eventHandlers/onVoteRequestUpdate.ts +++ b/functions/src/definitions/eventHandlers/onVoteRequestUpdate.ts @@ -26,7 +26,11 @@ const db = admin.firestore() const onVoteRequestUpdateV2 = onDocumentUpdated( { document: "messages/{messageId}/voteRequests/{voteRequestId}", - secrets: ["WHATSAPP_CHECKERS_BOT_PHONE_NUMBER_ID", "WHATSAPP_TOKEN"], + secrets: [ + "WHATSAPP_CHECKERS_BOT_PHONE_NUMBER_ID", + "WHATSAPP_TOKEN", + "TELEGRAM_CHECKER_BOT_TOKEN", + ], }, async (event) => { // Grab the current value of what was written to Firestore.