[messaging] clean orphan threads and messages after connected account deletion (#4195)

* [messaging] add connected account associated data delete

* add threadCleanerService

* fix

* fix import

* add thread cleaner import

* remove log
This commit is contained in:
Weiko
2024-02-26 21:29:44 +01:00
committed by GitHub
parent 6a1abba9ea
commit 214807588a
22 changed files with 326 additions and 116 deletions

View File

@ -77,11 +77,13 @@ export class CreateCompanyService {
const { name, city } = await this.getCompanyInfoFromDomainName(domainName);
this.companyService.createCompany(
companyId,
name,
domainName,
city,
workspaceId,
{
id: companyId,
domainName,
name,
city,
},
transactionManager,
);