From b9f70c779600299e77410771851e8eb30e921fb1 Mon Sep 17 00:00:00 2001 From: Steffen Date: Tue, 30 Jul 2024 15:58:12 +0200 Subject: [PATCH] chore(avs): ensure supervisor reroutes are correct upon company switch --- src/Handler/Utils/Avs.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Handler/Utils/Avs.hs b/src/Handler/Utils/Avs.hs index 50b70f784..43bc8793c 100644 --- a/src/Handler/Utils/Avs.hs +++ b/src/Handler/Utils/Avs.hs @@ -703,8 +703,9 @@ upsertCompanySuperior (mbCid, newAfi) mbOldAfi ) (\_old new -> [ -- UserSupervisorSupervisor E.=. new E.^. UserSupervisorSupervisor -- this is already given in case of conflict - UserSupervisorCompany E.=. new E.^. UserSupervisorCompany - , UserSupervisorReason E.=. new E.^. UserSupervisorReason + UserSupervisorCompany E.=. new E.^. UserSupervisorCompany + , UserSupervisorReason E.=. new E.^. UserSupervisorReason + , UserSupervisorRerouteNotifications E.=. new E.^. UserSupervisorRerouteNotifications ] ) reportAdminProblem $ AdminProblemCompanySuperiorChange supid cid oldSup