FIX: Couldn't agree with a custom flag type

This commit is contained in:
Robin Ward 2017-10-26 14:41:11 -04:00
parent 764cf7e3a5
commit 530624d438
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ SQL
end
def self.post_action_type_for_post(post_id)
post_action = PostAction.find_by(deferred_at: nil, post_id: post_id, post_action_type_id: PostActionType.flag_types_without_custom.values, deleted_at: nil)
post_action = PostAction.find_by(deferred_at: nil, post_id: post_id, post_action_type_id: PostActionType.notify_flag_types.values, deleted_at: nil)
PostActionType.types[post_action.post_action_type_id]
end