Added filter in account moderation to for spam

• Added:
- filter in account moderation to for spam
This commit is contained in:
mgabdev
2021-02-03 00:58:58 -05:00
parent 33f4bc4650
commit dd8531237d
4 changed files with 11 additions and 1 deletions

View File

@@ -58,6 +58,8 @@ class AccountFilter
Account.joins(:account_stat)
when "sign_up_date_gte"
Account.where("created_at >= ?", value)
when "spam"
Account.where(is_flagged_as_spam: true)
else
raise "Unknown filter: #{key}"
end