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

This commit is contained in:
Joshua Coles 2024-02-07 11:21:53 +00:00
parent ec080c0eb0
commit 3d88280f34

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