mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
Communication package workaround
Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
parent
03148b36b4
commit
98fc3751c6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user