8643 fix sentry error (#8644)
- fixes missing data in event payload when adding a new workspaceMember - add strong typing to database event emitters
This commit is contained in:
@ -119,8 +119,8 @@ export class MatchParticipantService<
|
||||
transactionManager,
|
||||
);
|
||||
|
||||
this.workspaceEventEmitter.emit(
|
||||
`${objectMetadataName}.matched`,
|
||||
this.workspaceEventEmitter.emitCustomBatchEvent(
|
||||
`${objectMetadataName}_matched`,
|
||||
[
|
||||
{
|
||||
workspaceMemberId: null,
|
||||
@ -174,12 +174,12 @@ export class MatchParticipantService<
|
||||
},
|
||||
});
|
||||
|
||||
this.workspaceEventEmitter.emit(
|
||||
`${objectMetadataName}.matched`,
|
||||
this.workspaceEventEmitter.emitCustomBatchEvent(
|
||||
`${objectMetadataName}_matched`,
|
||||
[
|
||||
{
|
||||
workspaceId,
|
||||
name: `${objectMetadataName}.matched`,
|
||||
name: `${objectMetadataName}_matched`,
|
||||
workspaceMemberId: null,
|
||||
participants: updatedParticipants,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user