Skip to content

Commit 7c8cbb7

Browse files
committed
updated
1 parent 8f15826 commit 7c8cbb7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/note.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def update_note(noteId: str, payload: schemas.NoteBaseSchema, db: Session = Depe
3636
note_query.filter(models.Note.id == noteId).update(update_data,
3737
synchronize_session=False)
3838
db.commit()
39+
db.refresh(db_note)
3940
return {"status": "success", "note": db_note}
4041

4142

0 commit comments

Comments
 (0)