diff --git a/app/models/user_deletion_log.rb b/app/models/user_deletion_log.rb index 712b7ed..97e2f4c 100644 --- a/app/models/user_deletion_log.rb +++ b/app/models/user_deletion_log.rb @@ -63,7 +63,7 @@ def self.find_user_penalty_history(user, ignore_jaccount_not_found = false) email = user.email jaccount_account = user.user_associated_accounts.find_by(provider_name: JACCOUNT_PROVIDER_NAME) if jaccount_account.nil? - if ignore_jaccount_not_found + if !ignore_jaccount_not_found Rails.logger.warn("User #{user.id} has no jaccount_account") end records = UserDeletionLog.where(email: email).where("user_id != ? ",user.id)