From 3d88280f3481b466eae30268f9920c14c2948bd3 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Wed, 7 Feb 2024 11:21:53 +0000 Subject: [PATCH] Anddddd fix the method itself --- app/models/course.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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