Skip to content

Commit 089895a

Browse files
committed
chore: update SDKs to new RC version
1 parent 8287c4e commit 089895a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-native-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5-
"version": "0.5.0-rc.1",
5+
"version": "0.5.0-rc.2",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Client {
103103
'x-sdk-name': 'React Native',
104104
'x-sdk-platform': 'client',
105105
'x-sdk-language': 'reactnative',
106-
'x-sdk-version': '0.5.0-rc.1',
106+
'x-sdk-version': '0.5.0-rc.2',
107107
'X-Appwrite-Response-Format': '1.6.0',
108108
};
109109

src/services/functions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class Functions extends Service {
164164
* @throws {AppwriteException}
165165
* @returns {Promise}
166166
*/
167-
async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string, onProgress = (progress: UploadProgress) => {}): Promise<Models.Execution> {
167+
async createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution> {
168168
if (typeof functionId === 'undefined') {
169169
throw new AppwriteException('Missing required parameter: "functionId"');
170170
}
@@ -197,6 +197,9 @@ export class Functions extends Service {
197197
}
198198

199199
const uri = new URL(this.client.config.endpoint + apiPath);
200+
return await this.client.call('post', uri, {
201+
'content-type': 'application/json',
202+
}, payload);
200203
}
201204

202205
/**

0 commit comments

Comments
 (0)