mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 19:42:32 -05:00
12 lines
261 B
Ruby
12 lines
261 B
Ruby
module Jobs
|
|
|
|
# Asynchronously send an email to a user
|
|
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
|