From 200f917c78b47cadae354528986c95768676f84f Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Wed, 15 May 2024 17:07:20 -0400 Subject: [PATCH] fix: renaming teamUpdate function the refactored one --- templates/cli/lib/commands/deploy.js.twig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/cli/lib/commands/deploy.js.twig b/templates/cli/lib/commands/deploy.js.twig index ea30d1ba9..829f095b6 100644 --- a/templates/cli/lib/commands/deploy.js.twig +++ b/templates/cli/lib/commands/deploy.js.twig @@ -34,7 +34,7 @@ const { } = require("./storage"); const { teamsGet, - teamsUpdate, + teamsUpdateName, teamsCreate } = require("./teams"); @@ -353,7 +353,7 @@ const deployFunction = async ({ functionId, all, yes } = {}) => { functionId: func['$id'], parseOutput: false }, 100, 'variables'); - + await Promise.all(variables.map(async variable => { await functionsDeleteVariable({ functionId: func['$id'], @@ -361,7 +361,7 @@ const deployFunction = async ({ functionId, all, yes } = {}) => { parseOutput: false }); })); - + let result = await awaitPools.wipeVariables(func['$id']); if (!result) { throw new Error("Variable deletion timed out."); @@ -882,7 +882,7 @@ const deployTeam = async ({ all, yes } = {}) => { log(`Updating team ...`) - await teamsUpdate({ + await teamsUpdateName({ teamId: team['$id'], name: team.name, parseOutput: false @@ -938,4 +938,4 @@ deploy module.exports = { deploy -} \ No newline at end of file +}