FIX: Prevent exception in rescue block.

> Job exception: undefined method `id' for nil:NilClass
> clean_up_inactive_users.rb:25:in `rescue in block in execute'
This commit is contained in:
Dan Ungureanu 2019-04-16 01:26:51 +03:00
parent 3ceff0a92a
commit e23c87c442
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ module Jobs
rescue => e
Discourse.handle_job_exception(e,
message: "Cleaning up inactive users",
extra: { user_id: user.id }
extra: { user_id: id }
)
end
end