fix expired

This commit is contained in:
Pete Matsyburka committed 2025-05-20 11:18:08 +03:00
1 parent 047c192988
commit 14fa8fc8e7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ class Submission < ApplicationRecord
.and(Submitter.arel_table[:completed_at].eq(nil))).select(1).arel.exists)
}
scope :declined, -> { joins(:submitters).where.not(submitters: { declined_at: nil }).group(:id) }
scope :expired, -> { where(expire_at: ..Time.current) }
scope :expired, -> { pending.where(expire_at: ..Time.current) }
enum :source, {
invite: 'invite',