fix note api

This commit is contained in:
Your Name 2025-02-23 18:12:38 -05:00 committed by Henri Dickson
parent aa7ca832d6
commit 04dc3123e4

View file

@ -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