FIX: Defer wasn't working on all flag types

This commit is contained in:
Robin Ward 2017-10-20 10:04:37 -04:00
parent 671af2690e
commit e00d330579

View File

@ -193,7 +193,7 @@ SQL
def self.defer_flags!(post, moderator, delete_post = false)
actions = PostAction.active
.where(post_id: post.id)
.where(post_action_type_id: PostActionType.flag_types_without_custom.values)
.where(post_action_type_id: PostActionType.notify_flag_type_ids)
actions.each do |action|
action.deferred_at = Time.zone.now