fix note api error

This commit is contained in:
Your Name 2025-02-22 16:31:12 -05:00 committed by Henri Dickson
parent 6f0217f91c
commit 3ed93668e1

View file

@ -63,6 +63,7 @@ def add_note_for_item(request, item_uuid: str, n_in: NoteInSchema):
if not item:
return 404, {"message": "Item not found"}
note = Note()
note.item = item
note.title = n_in.title
note.content = n_in.content
note.sensitive = n_in.sensitive