-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4747 create deleted listener on blocklist #5067
Conversation
@@ -432,6 +433,12 @@ export class WorkspaceQueryRunnerService { | |||
workspaceId, | |||
objectMetadataItem, | |||
); | |||
|
|||
const deletedBlocklistItem = await this.handleDeleteBlocklistItem( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we would like this in the deleteMany for API users but since this is a temporary implementation I guess it's fine!
@@ -615,4 +623,36 @@ export class WorkspaceQueryRunnerService { | |||
|
|||
return workspaceMemberResult.edges?.[0]?.node; | |||
} | |||
|
|||
async handleDeleteBlocklistItem( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To replace with ObjectMetadataORM when implemented, LGTM for now!
packages/twenty-server/src/modules/messaging/listeners/messaging-blocklist.listener.ts
Show resolved
Hide resolved
Closes #4747 for calendar events
…m:twentyhq/twenty into 4747-create-deleted-listener-on-blocklist
Closes #4747