Skip to content

Commit 7979ea5

Browse files
Merge pull request #714 from appwrite/fix-cli-chunk-upload2
Fix: CLI chunk upload
2 parents 54fb395 + c22e780 commit 7979ea5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const initFunction = async () => {
8181

8282
fs.mkdirSync(functionDir, "777");
8383

84-
let gitInitCommands = "git clone --depth 1 --sparse https://github.com/{{ sdk.gitUserName }}/functions-starter ."; // depth prevents fetching older commits reducing the amount fetched
84+
let gitInitCommands = "git clone -b v3 --single-branch --depth 1 --sparse https://github.com/{{ sdk.gitUserName }}/functions-starter ."; // depth prevents fetching older commits reducing the amount fetched
8585

8686
let gitPullCommands = `git sparse-checkout add ${answers.runtime.id}`;
8787

templates/cli/package.json.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"windows-arm64": "pkg -t node16-win-arm64 -o build/appwrite-cli-win-arm64.exe package.json"
2323
},
2424
"dependencies": {
25-
"axios": "^0.27.2",
25+
"axios": "1.5.0",
2626
"chalk": "4.1.2",
2727
"cli-table3": "^0.6.2",
2828
"commander": "^9.2.0",

templates/swift/base/requests/OAuth.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
let query = "?\(client.parametersToQueryString(params: params))"
2-
let url = URL(string: client.endPoint + api_path + query)!
1+
let query = "?\(client.parametersToQueryString(params: apiParams))"
2+
let url = URL(string: client.endPoint + apiPath + query)!
33
let callbackScheme = "appwrite-callback-\(client.config["project"] ?? "")"
44
let group = DispatchGroup()
55

tests/languages/cli/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { exec, execSync } = require('child_process');
22

3-
execSync("node index client --endpoint 'https://demo.appwrite.io/v1' --projectId console --key=35y3h5h345 --selfSigned true", { stdio: 'inherit' });
3+
execSync("node index client --endpoint 'https://qa.appwrite.org/v1' --projectId console --key=35y3h5h345 --selfSigned true", { stdio: 'inherit' });
44

55
var output;
66
console.log('\nTest Started');

0 commit comments

Comments
 (0)