TSK-912: Notifications on removing the request (#2806)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov
2023-03-22 19:50:00 +06:00
committed by GitHub
parent 1d94a1c3f8
commit cfda41bb66
+1 -1
View File
@@ -297,7 +297,7 @@ export async function OnRequestUpdate (tx: Tx, control: TriggerControl): Promise
*/
export async function OnRequestRemove (tx: Tx, control: TriggerControl): Promise<Tx[]> {
const actualTx = TxProcessor.extractTx(tx)
if (core.class.TxCreateDoc !== actualTx._class) {
if (core.class.TxRemoveDoc !== actualTx._class) {
return []
}
const ctx = actualTx as TxCreateDoc<Request>