]> uap-core.de Git - note.git/commitdiff
fix missing resource_id update in note_store_new_note_async
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 22 Oct 2025 18:38:12 +0000 (20:38 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 22 Oct 2025 18:38:12 +0000 (20:38 +0200)
application/store.c

index ee52203a41d8ba10963100fc48074c85768cb5aa..432391113865f82409c46c4eff5c5f2c7c0b65a6 100644 (file)
@@ -615,6 +615,7 @@ static int qthr_new_note(SaveNoteJob *job) {
                     int64_t note_id;
                     if(!dbuResultAsInt64(insert2Result, &note_id)) {
                         job->note->note_id = note_id;
+                        job->note->resource_id = n->resource_id;
                     } else {
                         job->error = 4;
                     }