Skip to content

Commit 75ea2fc

Browse files
Merge pull request #447 from appwrite/fix-cli-deploy
2 parents db265ee + 14e17eb commit 75ea2fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const deployFunction = async () => {
149149
let response = {};
150150

151151
let answers = await inquirer.prompt(questionsDeployFunctions)
152-
let functions = answers.functions
152+
let functions = answers.functions.map((func) => JSONbig.parse(func))
153153

154154
for (let func of functions) {
155155
log(`Deploying function ${func.name} ( ${func['$id']} )`)

templates/cli/lib/questions.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const questionsDeployFunctions = [
197197
let choices = functions.map((func, idx) => {
198198
return {
199199
name: `${func.name} (${func['$id']})`,
200-
value: func
200+
value: JSONbig.stringify(func)
201201
}
202202
})
203203
return choices;

0 commit comments

Comments
 (0)