Browse Source

Fix tests

pull/2605/head
Manny Dinssa 2 years ago
parent
commit
ae8ba81e99
  1. 2
      app/models/location.rb

2
app/models/location.rb

@ -118,7 +118,7 @@ class Location < ApplicationRecord
.where.not(id: joins(scheme: [:owning_organisation]).merge(Location.deactivated_by_organisation).pluck(:id))
.where.not(id: incomplete.pluck(:id))
.where.not(id: activating_soon(date).pluck(:id))
.where(scheme: Scheme.active)
.where(scheme: Scheme.active(date))
}
scope :visible, -> { where(discarded_at: nil) }

Loading…
Cancel
Save