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:
martmull
2024-11-21 17:09:36 +01:00
committed by GitHub
parent 395da91071
commit 39373b4a28
61 changed files with 460 additions and 311 deletions

View File

@ -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,
},