2014-03-03 12:16:10 +08:00
|
|
|
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
|
2014-03-31 14:14:21 +08:00
|
|
|
|
2014-03-03 12:16:10 +08:00
|
|
|
end
|