diff --git a/app/models/course.rb b/app/models/course.rb index b9c227e..cfb4bf9 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -93,7 +93,7 @@ class Course < ApplicationRecord # Sometimes our toggl entries get mismatched or otherwise out of sync. This method will delete all tracked time entries # for this course and then re-import them from Toggl. def redo_toggl_entries! - TrackedTimeEntry.where(lecture: lectures).destroy_all + TrackedTimeEntry.where(subject: lectures).destroy_all ScrapeTogglJob.perform_later([self.id]) end end