Class: Nexo::FolderCheckStatusJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/nexo/folder_check_status_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(folder) ⇒ Object



3
4
5
6
7
8
# File 'app/jobs/nexo/folder_check_status_job.rb', line 3

def perform(folder)
  calendar = GoogleCalendarService.new(folder.integration).get_calendar(folder)
  folder.update(nf_status: :ok)
rescue StandardError => e
  folder.update(nf_status: :not_found)
end