Browse Source

fix(nextcloud): Fix updating note favorite

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/602/head
jld3103 2 years ago
parent
commit
4784a08807
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 4
      packages/nextcloud/lib/src/api/notes.openapi.dart
  2. 3
      packages/nextcloud/lib/src/api/notes.openapi.json

4
packages/nextcloud/lib/src/api/notes.openapi.dart

@ -219,7 +219,7 @@ class NotesClient extends DynamiteClient {
final int? modified, final int? modified,
final String? title, final String? title,
final String? category, final String? category,
final int favorite = 0, final int? favorite,
final String? ifMatch, final String? ifMatch,
}) async { }) async {
var path = '/index.php/apps/notes/api/v1/notes/{id}'; var path = '/index.php/apps/notes/api/v1/notes/{id}';
@ -248,7 +248,7 @@ class NotesClient extends DynamiteClient {
if (category != null) { if (category != null) {
queryParameters['category'] = category; queryParameters['category'] = category;
} }
if (favorite != 0) { if (favorite != null) {
queryParameters['favorite'] = favorite.toString(); queryParameters['favorite'] = favorite.toString();
} }
if (ifMatch != null) { if (ifMatch != null) {

3
packages/nextcloud/lib/src/api/notes.openapi.json

@ -396,8 +396,7 @@
"in": "query", "in": "query",
"required": false, "required": false,
"schema": { "schema": {
"type": "integer", "type": "integer"
"default": 0
} }
}, },
{ {

Loading…
Cancel
Save