remove db timeouts for mod report
This commit is contained in:
@@ -9,43 +9,63 @@ module Moderator
|
|||||||
end
|
end
|
||||||
|
|
||||||
def artists
|
def artists
|
||||||
Queries::Artist.all(min_date, max_level)
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::Artist.all(min_date, max_level)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def comments
|
def comments
|
||||||
Queries::Comment.all(min_date, max_level)
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::Comment.all(min_date, max_level)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def mod_actions
|
def mod_actions
|
||||||
Queries::ModAction.all
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::ModAction.all
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def notes
|
def notes
|
||||||
Queries::Note.all(min_date, max_level)
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::Note.all(min_date, max_level)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def appeals
|
def appeals
|
||||||
Queries::PostAppeal.all(min_date)
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::PostAppeal.all(min_date)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def flags
|
def flags
|
||||||
Queries::PostFlag.all(min_date)
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::PostFlag.all(min_date)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def tags
|
def tags
|
||||||
Queries::Tag.all(min_date, max_level)
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::Tag.all(min_date, max_level)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def posts
|
def posts
|
||||||
Queries::Upload.all(min_date, max_level)
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::Upload.all(min_date, max_level)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def user_feedbacks
|
def user_feedbacks
|
||||||
Queries::UserFeedback.all
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::UserFeedback.all
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def wiki_pages
|
def wiki_pages
|
||||||
Queries::WikiPage.all(min_date, max_level)
|
ActiveRecord::Base.without_timeout do
|
||||||
|
Queries::WikiPage.all(min_date, max_level)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user