Skip to content

Commit

Permalink
feat: Add an easy way to reschedule a check
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvench committed Feb 20, 2025
1 parent 4018475 commit a720b1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def to_partial_path = self.class.model_name.collection.singularize
def due? = persisted? && pending? && run_at <= Time.current
def root_page = Page.new(audit.url)
def crawl = Crawler.new(audit.url)
def reschedule = update(status: :pending, scheduled: false, checked_at: nil)

def to_badge
[status_to_badge_level, status_to_badge_text, status_link].compact
Expand Down

0 comments on commit a720b1e

Please sign in to comment.