Skip to content

Commit

Permalink
Merge pull request #838 from appwrite/fix-team-update-function
Browse files Browse the repository at this point in the history
fix: renaming teamUpdate function the refactored one
  • Loading branch information
christyjacob4 authored May 20, 2024
2 parents 7ef3c97 + 200f917 commit d7016d6
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");
const { checkDeployConditions } = require('../utils');
Expand Down Expand Up @@ -355,15 +355,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 @@ -881,7 +881,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 @@ -937,4 +937,4 @@ deploy

module.exports = {
deploy
}
}

0 comments on commit d7016d6

Please sign in to comment.