From ca01f01efe157dfcf4f212bdc2b12e656cd7e3f0 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 28 Feb 2022 15:37:26 +0000 Subject: [PATCH] Fix CLI deleting variable and storing environment variables --- templates/cli/lib/commands/deploy.js.twig | 2 +- templates/cli/lib/commands/init.js.twig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/cli/lib/commands/deploy.js.twig b/templates/cli/lib/commands/deploy.js.twig index f843ea35d..68e627799 100644 --- a/templates/cli/lib/commands/deploy.js.twig +++ b/templates/cli/lib/commands/deploy.js.twig @@ -167,7 +167,7 @@ const deployFunction = async () => { functionId: func['$id'], name: func.name, execute: func.execute, - vars: func.vars, + vars: response.vars, events: func.events, schedule: func.schedule, timeout: func.timeout, diff --git a/templates/cli/lib/commands/init.js.twig b/templates/cli/lib/commands/init.js.twig index d4b84cf7a..c006f4a9e 100644 --- a/templates/cli/lib/commands/init.js.twig +++ b/templates/cli/lib/commands/init.js.twig @@ -100,7 +100,6 @@ const initFunction = async () => { path: `functions/${answers.name}`, entrypoint: answers.runtime.entrypoint || '', execute: response.execute, - vars: response.vars, events: response.events, schedule: response.schedule, timeout: response.timeout,