Anddddd fix the method itself
Build and Publish Docker Container / build (push) Failing after 31m25s

This commit is contained in:
2024-02-07 11:22:02 +00:00
parent ec080c0eb0
commit 3d88280f34
+1 -1
View File
@@ -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