mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 18:45:59 +08:00
13 lines
219 B
Ruby
13 lines
219 B
Ruby
module Jobs
|
|
|
|
class UpdateUserInfo < Jobs::Base
|
|
|
|
def execute(args)
|
|
user = User.where(id: args[:user_id]).first
|
|
user.update_last_seen!
|
|
user.update_ip_address!(args[:ip_address])
|
|
end
|
|
end
|
|
|
|
end
|