Skip to content

Commit b1fbb4d

Browse files
committed
chore: bug fixes for Apwrite 1.4.2
1 parent 0d2078b commit b1fbb4d

File tree

7 files changed

+4
-8
lines changed

7 files changed

+4
-8
lines changed

docs/examples/functions/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void main() { // Init SDK
1313
Future result = functions.create(
1414
functionId: '[FUNCTION_ID]',
1515
name: '[NAME]',
16-
runtime: 'node-14.5',
16+
runtime: 'node-18.0',
1717
);
1818

1919
result

docs/examples/functions/update.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ void main() { // Init SDK
1313
Future result = functions.update(
1414
functionId: '[FUNCTION_ID]',
1515
name: '[NAME]',
16-
runtime: 'node-14.5',
1716
);
1817

1918
result

docs/examples/teams/create-membership.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ void main() { // Init SDK
1313
Future result = teams.createMembership(
1414
teamId: '[TEAM_ID]',
1515
roles: [],
16-
url: 'https://example.com',
1716
);
1817

1918
result

lib/services/functions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class Functions extends Service {
121121
/// Update Function
122122
///
123123
/// Update function by its unique ID.
124-
Future<models.Func> update({required String functionId, required String name, required String runtime, List<String>? execute, List<String>? events, String? schedule, int? timeout, bool? enabled, bool? logging, String? entrypoint, String? commands, String? installationId, String? providerRepositoryId, String? providerBranch, bool? providerSilentMode, String? providerRootDirectory}) async {
124+
Future<models.Func> update({required String functionId, required String name, String? runtime, List<String>? execute, List<String>? events, String? schedule, int? timeout, bool? enabled, bool? logging, String? entrypoint, String? commands, String? installationId, String? providerRepositoryId, String? providerBranch, bool? providerSilentMode, String? providerRootDirectory}) async {
125125
final String apiPath = '/functions/{functionId}'.replaceAll('{functionId}', functionId);
126126

127127
final Map<String, dynamic> apiParams = {

lib/services/teams.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class Teams extends Service {
173173
/// Appwrite will accept the only redirect URLs under the domains you have
174174
/// added as a platform on the Appwrite Console.
175175
///
176-
Future<models.Membership> createMembership({required String teamId, required List<String> roles, required String url, String? email, String? userId, String? phone, String? name}) async {
176+
Future<models.Membership> createMembership({required String teamId, required List<String> roles, String? email, String? userId, String? phone, String? url, String? name}) async {
177177
final String apiPath = '/teams/{teamId}/memberships'.replaceAll('{teamId}', teamId);
178178

179179
final Map<String, dynamic> apiParams = {

test/services/functions_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void main() {
105105
final response = await functions.create(
106106
functionId: '[FUNCTION_ID]',
107107
name: '[NAME]',
108-
runtime: 'node-14.5',
108+
runtime: 'node-18.0',
109109
);
110110
expect(response, isA<models.Func>());
111111

@@ -200,7 +200,6 @@ void main() {
200200
final response = await functions.update(
201201
functionId: '[FUNCTION_ID]',
202202
name: '[NAME]',
203-
runtime: 'node-14.5',
204203
);
205204
expect(response, isA<models.Func>());
206205

test/services/teams_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ void main() {
194194
final response = await teams.createMembership(
195195
teamId: '[TEAM_ID]',
196196
roles: [],
197-
url: 'https://example.com',
198197
);
199198
expect(response, isA<models.Membership>());
200199

0 commit comments

Comments
 (0)