11 lines
251 B
11 lines
251 B
6 years ago
|
class UpdateMyshixunWorkStatusJob < ApplicationJob
|
||
|
queue_as :default
|
||
|
|
||
|
def perform(myshixun_id)
|
||
|
myshixun = Myshixun.find_by(id: myshixun_id)
|
||
|
return if myshixun.blank?
|
||
|
|
||
|
HomeworksService.new.update_myshixun_work_status myshixun
|
||
|
end
|
||
|
end
|