From cfda41bb6642dc8340e83edc59cab2d0bcde2008 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Wed, 22 Mar 2023 18:50:00 +0500 Subject: [PATCH] TSK-912: Notifications on removing the request (#2806) Signed-off-by: Vyacheslav Tumanov --- server-plugins/hr-resources/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-plugins/hr-resources/src/index.ts b/server-plugins/hr-resources/src/index.ts index 32e363bf0e..c31e600cb5 100644 --- a/server-plugins/hr-resources/src/index.ts +++ b/server-plugins/hr-resources/src/index.ts @@ -297,7 +297,7 @@ export async function OnRequestUpdate (tx: Tx, control: TriggerControl): Promise */ export async function OnRequestRemove (tx: Tx, control: TriggerControl): Promise { const actualTx = TxProcessor.extractTx(tx) - if (core.class.TxCreateDoc !== actualTx._class) { + if (core.class.TxRemoveDoc !== actualTx._class) { return [] } const ctx = actualTx as TxCreateDoc