Fix clean unconfirmed users task for LinkedIn

This commit is contained in:
Luka Murn 2018-07-09 16:21:11 +02:00 committed by GitHub
parent a6a395e394
commit 8c0f5757ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ namespace :data do
# Remove users who didn't finish signup with LinkedIn
users = User.joins(:user_identities)
.where(confirmed_at: nil)
.where('created_at < ?', Devise.confirm_within.ago)
.where('users.created_at < ?', Devise.confirm_within.ago)
destroy_users(users)
end