mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 00:24:42 +08:00
Merge pull request #1243 from biosistemika/Ducz0r-patch-1
Fix clean unconfirmed users task for LinkedIn
This commit is contained in:
commit
0371bceb9d
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ namespace :data do
|
||||||
# Remove users who didn't finish signup with LinkedIn
|
# Remove users who didn't finish signup with LinkedIn
|
||||||
users = User.joins(:user_identities)
|
users = User.joins(:user_identities)
|
||||||
.where(confirmed_at: nil)
|
.where(confirmed_at: nil)
|
||||||
.where('created_at < ?', Devise.confirm_within.ago)
|
.where('users.created_at < ?', Devise.confirm_within.ago)
|
||||||
destroy_users(users)
|
destroy_users(users)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue