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:
parent
3ceff0a92a
commit
e23c87c442
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue