From acbdfb557d4b3044321cbb20d22ce673ebc65a76 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 11 Apr 2021 00:39:15 +1200 Subject: [PATCH] API bug fix (woops?) --- src/messaging/MessagingEvent.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/messaging/MessagingEvent.ts b/src/messaging/MessagingEvent.ts index 314cb296..504a79f4 100644 --- a/src/messaging/MessagingEvent.ts +++ b/src/messaging/MessagingEvent.ts @@ -148,7 +148,8 @@ export default class MessagingEvent { } globalSubscriptionCounter++; - return MessagingService.SubscribeAsync(this.name, (recieved: ISubscriptionMessage) => { + return MessagingService.SubscribeAsync(this.name, (data, sent) => { + const recieved = { Data: data, Sent: sent }; const { Sent } = recieved; if (isJobTargetMessage(recieved)) {