Skip to content

Commit

Permalink
API bug fix (woops?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlias committed Apr 10, 2021
1 parent 9186211 commit acbdfb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/messaging/MessagingEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ export default class MessagingEvent<TMessage extends unknown = unknown> {
}

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)) {
Expand Down

0 comments on commit acbdfb5

Please sign in to comment.