Commits

Anonymous committed 42547a4

Fixed locking in add/remove interest action

  • Participants
  • Parent commits 3da8612

Comments (0)

Files changed (1)

app/main/interest/_action/update.lua

 
 local interest = Interest:by_pk(issue_id, app.session.member.id)
 
-local issue = Issue:by_id(issue_id)
+local issue = Issue:new_selector():add_where{ "id = ?", issue_id }:for_share():single_object_mode():exec()
 
 if issue.closed then
   slot.put_into("error", _"This issue is already closed.")