Skip to content

Commit

Permalink
fix: ignore jaccount not found
Browse files Browse the repository at this point in the history
  • Loading branch information
pangbo13 committed Mar 15, 2024
1 parent 218e786 commit c667869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user_deletion_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c667869

Please sign in to comment.