Communication package workaround

Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
Anton Alexeyev 2025-05-22 11:31:32 +07:00
parent 03148b36b4
commit 98fc3751c6

View File

@ -278,7 +278,8 @@ async function OnCardRemove (ctx: TxRemoveDoc<Card>[], control: TriggerControl):
}
void control.communicationApi?.event(
{ account: systemAccount },
// TODO: We should decide what to do with communications package and remove this workaround
{ account: systemAccount as any },
{
type: CardRequestEventType.RemoveCard,
card: removedCard._id
@ -347,7 +348,8 @@ async function OnCardUpdate (ctx: TxUpdateDoc<Card>[], control: TriggerControl):
}
if ((updateTx.operations as any)._class !== undefined) {
void control.communicationApi?.event(
{ account: systemAccount },
// TODO: We should decide what to do with communications package and remove this workaround
{ account: systemAccount as any },
{
type: CardRequestEventType.UpdateCardType,
card: doc._id,