Browse Source

lint

pull/3058/head
Manny Dinssa 2 weeks ago
parent
commit
f5636e863f
  1. 2
      app/models/organisation.rb

2
app/models/organisation.rb

@ -220,7 +220,7 @@ class Organisation < ApplicationRecord
start_date: created_at,
end_date: changes.first&.dig(:start_date)&.yesterday,
status: changes.empty? || Time.zone.now.to_date < changes.first[:start_date] ? "active" : "inactive",
)
)
changes
end

Loading…
Cancel
Save