Anddddd fix the method itself
Some checks failed
Build and Publish Docker Container / build (push) Failing after 31m25s
Some checks failed
Build and Publish Docker Container / build (push) Failing after 31m25s
This commit is contained in:
parent
ec080c0eb0
commit
3d88280f34
@ -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
|
# 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.
|
# for this course and then re-import them from Toggl.
|
||||||
def redo_toggl_entries!
|
def redo_toggl_entries!
|
||||||
TrackedTimeEntry.where(lecture: lectures).destroy_all
|
TrackedTimeEntry.where(subject: lectures).destroy_all
|
||||||
ScrapeTogglJob.perform_later([self.id])
|
ScrapeTogglJob.perform_later([self.id])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user