Skip to content

Commit

Permalink
Merge pull request #2302 from DFE-Digital/fix-expire-after
Browse files Browse the repository at this point in the history
Call after_expired after expiration
  • Loading branch information
thomasleese authored Jul 11, 2024
2 parents a943605 + 5af8492 commit 31ca3ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/expire_requestable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def call

ActiveRecord::Base.transaction do
requestable.expired!
requestable.after_expired(user:)

CreateTimelineEvent.call(
"requestable_expired",
Expand All @@ -25,6 +24,8 @@ def call
ApplicationFormStatusUpdater.call(user:, application_form:)
end

requestable.after_expired(user:)

requestable
end

Expand Down

0 comments on commit 31ca3ef

Please sign in to comment.