From 04a199c7d232b93d4c263991d696f78ae0cae423 Mon Sep 17 00:00:00 2001 From: Carolyn Date: Mon, 17 Mar 2025 12:28:20 +0000 Subject: [PATCH] fix reactivation message variable syntax --- app/models/scheme.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/scheme.rb b/app/models/scheme.rb index 81bd505ed..81415ad85 100644 --- a/app/models/scheme.rb +++ b/app/models/scheme.rb @@ -316,7 +316,7 @@ class Scheme < ApplicationRecord end def soonest_reactivation(date) - scheme_deactivation_periods.deactivations_with_reactivation.where(date < reactivation_date).order(reactivation_date).first + scheme_deactivation_periods.deactivations_with_reactivation.where("reactivation_date > ?", date).order(reactivation_date: :asc).first end def last_deactivation_date