Browse Source

Merge pull request #602 from nextcloud/fix/note-update-favorite

fix(nextcloud): Fix updating note favorite
pull/581/head
Kate 1 year ago committed by GitHub
parent
commit
7e9fc9164d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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 String? title,
final String? category,
final int favorite = 0,
final int? favorite,
final String? ifMatch,
}) async {
var path = '/index.php/apps/notes/api/v1/notes/{id}';
@ -248,7 +248,7 @@ class NotesClient extends DynamiteClient {
if (category != null) {
queryParameters['category'] = category;
}
if (favorite != 0) {
if (favorite != null) {
queryParameters['favorite'] = favorite.toString();
}
if (ifMatch != null) {

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

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

Loading…
Cancel
Save