mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 15:05:24 +08:00
add todo
This commit is contained in:
parent
b2b01fd26c
commit
c314a1862f
|
@ -172,6 +172,8 @@ ORDER BY p.created_at desc
|
|||
transaction(requires_new: true) do
|
||||
begin
|
||||
|
||||
# TODO there are conditions when this is called and user_id was already rolled back and is invalid.
|
||||
|
||||
# protect against dupes, for some reason this is failing in some cases
|
||||
action = self.where(hash.select{|k,v| required_parameters.include?(k)}).first
|
||||
return action if action
|
||||
|
|
Loading…
Reference in New Issue
Block a user