Browse Source

Lint fixes

pull/3054/head
Manny Dinssa 1 month ago
parent
commit
2db0cd4d55
  1. 2
      app/models/organisation.rb
  2. 2
      app/models/organisation_name_change.rb

2
app/models/organisation.rb

@ -217,7 +217,7 @@ class Organisation < ApplicationRecord
start_date: created_at,
end_date: changes.first&.dig(:start_date)&.yesterday,
status: changes.empty? ? "active" : "inactive",
)
)
changes
end

2
app/models/organisation_name_change.rb

@ -36,7 +36,7 @@ class OrganisationNameChange < ApplicationRecord
end
def includes_date?(date)
startdate <= date && (next_change&.startdate.nil? || next_change&.startdate > date)
startdate <= date && (!next_change&.startdate || next_change.startdate > date)
end
def next_change

Loading…
Cancel
Save