Skip to content

Commit

Permalink
fix(api): fix update_workflow_by_id last_updated is added
Browse files Browse the repository at this point in the history
  • Loading branch information
pehlicd committed Mar 20, 2024
1 parent 71d6765 commit d20b58a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keep/api/routes/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ async def update_workflow_by_id(
workflow_from_db.description = workflow.get("description")
workflow_from_db.interval = workflow_interval
workflow_from_db.workflow_raw = yaml.dump(workflow)
workflow_from_db.last_updated = datetime.datetime.now()
session.add(workflow_from_db)
session.commit()
session.refresh(workflow_from_db)
Expand Down

0 comments on commit d20b58a

Please sign in to comment.