Skip to content

Commit d7016d6

Browse files
Merge pull request #838 from appwrite/fix-team-update-function
fix: renaming teamUpdate function the refactored one
2 parents 7ef3c97 + 200f917 commit d7016d6

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
const { checkDeployConditions } = require('../utils');
@@ -355,15 +355,15 @@ const deployFunction = async ({ functionId, all, yes } = {}) => {
355355
functionId: func['$id'],
356356
parseOutput: false
357357
}, 100, 'variables');
358-
358+
359359
await Promise.all(variables.map(async variable => {
360360
await functionsDeleteVariable({
361361
functionId: func['$id'],
362362
variableId: variable['$id'],
363363
parseOutput: false
364364
});
365365
}));
366-
366+
367367
let result = await awaitPools.wipeVariables(func['$id']);
368368
if (!result) {
369369
throw new Error("Variable deletion timed out.");
@@ -881,7 +881,7 @@ const deployTeam = async ({ all, yes } = {}) => {
881881

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

884-
await teamsUpdate({
884+
await teamsUpdateName({
885885
teamId: team['$id'],
886886
name: team.name,
887887
parseOutput: false
@@ -937,4 +937,4 @@ deploy
937937

938938
module.exports = {
939939
deploy
940-
}
940+
}

0 commit comments

Comments
 (0)