We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f15826 commit 7c8cbb7Copy full SHA for 7c8cbb7
1 file changed
app/note.py
@@ -36,6 +36,7 @@ def update_note(noteId: str, payload: schemas.NoteBaseSchema, db: Session = Depe
36
note_query.filter(models.Note.id == noteId).update(update_data,
37
synchronize_session=False)
38
db.commit()
39
+ db.refresh(db_note)
40
return {"status": "success", "note": db_note}
41
42
0 commit comments