From 923ee04511c3cec14481706c3f194fa0ad065d33 Mon Sep 17 00:00:00 2001 From: Callum Reekie Date: Thu, 24 Feb 2022 15:01:15 +0000 Subject: [PATCH] remove google bucket to env variable --- src/resources/utilities/wordTemplateBuilder.util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/utilities/wordTemplateBuilder.util.js b/src/resources/utilities/wordTemplateBuilder.util.js index 69c117a4..5f0fe0d5 100644 --- a/src/resources/utilities/wordTemplateBuilder.util.js +++ b/src/resources/utilities/wordTemplateBuilder.util.js @@ -15,7 +15,7 @@ const _getTemplate = async templateName => { destination: __dirname + '/template.docx', }; // get file from google bucket - resolve(storage.bucket('hdruk-gateway_www-outbound-dar-templates').file(templateName).download(options)); + resolve(storage.bucket(process.env.GOOGLE_WORD_OUTBOUND_STORAGE_BUCKET).file(templateName).download(options)); }); };