Browse Source

fix reactivation message syntax for location

pull/2995/head
Carolyn 2 months ago
parent
commit
b9804d667c
  1. 2
      app/models/location.rb

2
app/models/location.rb

@ -221,7 +221,7 @@ class Location < ApplicationRecord
end end
def soonest_reactivation(date) def soonest_reactivation(date)
location_deactivation_periods.deactivations_with_reactivation.where(date < reactivation_date).order(reactivation_date).first location_deactivation_periods.deactivations_with_reactivation.where("reactivation_date > ?", date).order(reactivation_date: :asc).first
end end
def status def status

Loading…
Cancel
Save