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