Skip to content

Commit 200f917

Browse files
committed
fix: renaming teamUpdate function the refactored one
1 parent af7e4b5 commit 200f917

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/cli/lib/commands/deploy.js.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const {
3434
} = require("./storage");
3535
const {
3636
teamsGet,
37-
teamsUpdate,
37+
teamsUpdateName,
3838
teamsCreate
3939
} = require("./teams");
4040

@@ -353,15 +353,15 @@ const deployFunction = async ({ functionId, all, yes } = {}) => {
353353
functionId: func['$id'],
354354
parseOutput: false
355355
}, 100, 'variables');
356-
356+
357357
await Promise.all(variables.map(async variable => {
358358
await functionsDeleteVariable({
359359
functionId: func['$id'],
360360
variableId: variable['$id'],
361361
parseOutput: false
362362
});
363363
}));
364-
364+
365365
let result = await awaitPools.wipeVariables(func['$id']);
366366
if (!result) {
367367
throw new Error("Variable deletion timed out.");
@@ -882,7 +882,7 @@ const deployTeam = async ({ all, yes } = {}) => {
882882

883883
log(`Updating team ...`)
884884

885-
await teamsUpdate({
885+
await teamsUpdateName({
886886
teamId: team['$id'],
887887
name: team.name,
888888
parseOutput: false
@@ -938,4 +938,4 @@ deploy
938938

939939
module.exports = {
940940
deploy
941-
}
941+
}

0 commit comments

Comments
 (0)