Skip to content

Commit 5b6d244

Browse files
Merge pull request #897 from appwrite/fix-localpath
fix(cli): Set function dest path
2 parents 8368f32 + 1a30611 commit 5b6d244

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ const pullFunctions = async () => {
7979
log(`Pulling function ${chalk.bold(func['name'])} ...`);
8080

8181
const localFunction = localConfig.getFunction(func.$id);
82+
83+
func['path'] = localFunction['path'];
8284
if(!localFunction['path']) {
8385
func['path'] = `functions/${func.$id}`;
8486
}
@@ -109,7 +111,7 @@ const pullFunctions = async () => {
109111
fs.rmSync(compressedFileName);
110112
}
111113
}
112-
114+
113115
success(`Successfully pulled ${chalk.bold(total)} functions.`);
114116
}
115117

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ const pushFunction = async ({ functionId, async, returnOnZero } = { returnOnZero
884884
logging: func.logging,
885885
entrypoint: func.entrypoint,
886886
commands: func.commands,
887+
scopes: func.scopes,
887888
providerRepositoryId: func.providerRepositoryId ?? "",
888889
installationId: func.installationId ?? '',
889890
providerBranch: func.providerBranch ?? '',

0 commit comments

Comments
 (0)