mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 12:05:36 +00:00
TSK-912: Notifications on removing the request (#2806)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
1d94a1c3f8
commit
cfda41bb66
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user