fix note api error
This commit is contained in:
parent
6f0217f91c
commit
3ed93668e1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue