Skip to content

Commit

Permalink
fix: renaming teamUpdate function the refactored one
Browse files Browse the repository at this point in the history
  • Loading branch information
byawitz committed May 15, 2024
1 parent af7e4b5 commit 200f917
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/cli/lib/commands/deploy.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const {
} = require("./storage");
const {
teamsGet,
teamsUpdate,
teamsUpdateName,
teamsCreate
} = require("./teams");

Expand Down Expand Up @@ -353,15 +353,15 @@ 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'],
variableId: variable['$id'],
parseOutput: false
});
}));

let result = await awaitPools.wipeVariables(func['$id']);
if (!result) {
throw new Error("Variable deletion timed out.");
Expand Down Expand Up @@ -882,7 +882,7 @@ const deployTeam = async ({ all, yes } = {}) => {

log(`Updating team ...`)

await teamsUpdate({
await teamsUpdateName({
teamId: team['$id'],
name: team.name,
parseOutput: false
Expand Down Expand Up @@ -938,4 +938,4 @@ deploy

module.exports = {
deploy
}
}

0 comments on commit 200f917

Please sign in to comment.