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 18:50:00 +05:00 committed by GitHub
parent 1d94a1c3f8
commit cfda41bb66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>