From 04dc3123e48c0b87cb78bc82777350cae7e48117 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 23 Feb 2025 18:12:38 -0500 Subject: [PATCH] fix note api --- journal/apis/note.py | 1 + 1 file changed, 1 insertion(+) diff --git a/journal/apis/note.py b/journal/apis/note.py index 1e6ed261..79f9f756 100644 --- a/journal/apis/note.py +++ b/journal/apis/note.py @@ -64,6 +64,7 @@ def add_note_for_item(request, item_uuid: str, n_in: NoteInSchema): return 404, {"message": "Item not found"} note = Note() note.item = item + note.owner = request.user.identity note.title = n_in.title note.content = n_in.content note.sensitive = n_in.sensitive