Skip to content

Commit 66c4a38

Browse files
committed
1 parent b5f6a41 commit 66c4a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/broadcast_announcement.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def expired?
2525

2626
def self.filter_announcements(parent_org)
2727
BroadcastAnnouncement.where(organization_id: parent_org)
28-
.where("expiry IS ? or expiry >= ?", nil, Time.zone.today)
28+
.where("expiry IS NULL or expiry >= ?", Time.zone.today)
2929
.order(created_at: :desc)
3030
end
3131
end

0 commit comments

Comments
 (0)