updateby-fix
All checks were successful
Deploy on push / deploy (push) Successful in 54s

This commit is contained in:
Untone 2025-03-31 14:39:02 +03:00
parent 4f599e097f
commit abbc074474

View File

@ -148,7 +148,11 @@ async def update_draft(_, info, draft_id: int, draft_input):
return {"error": "Draft not found"}
Draft.update(draft, draft_input)
draft.updated_at = int(time.time())
# Set updated_at and updated_by from the authenticated user
current_time = int(time.time())
draft.updated_at = current_time
draft.updated_by = author_id
session.commit()
return {"draft": draft}