mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-25 19:15:03 +02:00
Fix card update process trigger (#10296)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -277,7 +277,7 @@ export async function OnCardUpdate (txes: Tx[], control: TriggerControl): Promis
|
||||
if (!control.hierarchy.isDerived(cudTx.objectClass, cardPlugin.class.Card)) continue
|
||||
const card = await control.findAll(control.ctx, cardPlugin.class.Card, { _id: cudTx.objectId }, { limit: 1 })
|
||||
if (card.length === 0) continue
|
||||
const ops = isUpdateTx(cudTx) ? cudTx.operations : cudTx.mixin
|
||||
const ops = isUpdateTx(cudTx) ? cudTx.operations : cudTx.attributes
|
||||
await putEventToQueue(
|
||||
{
|
||||
event: process.trigger.OnCardUpdate,
|
||||
|
||||
Reference in New Issue
Block a user