Skip to content

How does it work? db.commit() db.refresh() #3434

@tranvannhat

Description

@tranvannhat

In 1 function I call
(1) crud.user_work_history.create(db, obj_in=user_work_history_in)
... and then call
(2) crud.user.update_when_leave_work(db, db_obj=user_leave, obj_in=user_in)

but 1 working, 2 working but not update new data. Please help me.
How does it work db.commit() db.refresh(db_obj)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions