8b5f79ddbf
This PR is fixing some issues and adding enhancement in TwentyORM: - [x] Composite fields in nested relations are not formatted properly - [x] Passing operators like `Any` in `where` condition is breaking the query - [x] Ability to auto load workspace-entities based on a regex path I've also introduced an example of use for `CalendarEventService`: https://github.com/twentyhq/twenty/pull/5439/files#diff-3a7dffc0dea57345d10e70c648e911f98fe237248bcea124dafa9c8deb1db748R15
23 lines
1.1 KiB
TypeScript
23 lines
1.1 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
|
|
import { ObjectMetadataRepositoryModule } from 'src/engine/object-metadata-repository/object-metadata-repository.module';
|
|
import { WorkspaceDataSourceModule } from 'src/engine/workspace-datasource/workspace-datasource.module';
|
|
import { AddPersonIdAndWorkspaceMemberIdModule } from 'src/modules/calendar-messaging-participant/services/add-person-id-and-workspace-member-id/add-person-id-and-workspace-member-id.module';
|
|
import { MessageParticipantService } from 'src/modules/messaging/services/message-participant/message-participant.service';
|
|
import { MessageParticipantWorkspaceEntity } from 'src/modules/messaging/standard-objects/message-participant.workspace-entity';
|
|
import { PersonWorkspaceEntity } from 'src/modules/person/standard-objects/person.workspace-entity';
|
|
|
|
@Module({
|
|
imports: [
|
|
WorkspaceDataSourceModule,
|
|
ObjectMetadataRepositoryModule.forFeature([
|
|
PersonWorkspaceEntity,
|
|
MessageParticipantWorkspaceEntity,
|
|
]),
|
|
AddPersonIdAndWorkspaceMemberIdModule,
|
|
],
|
|
providers: [MessageParticipantService],
|
|
exports: [MessageParticipantService],
|
|
})
|
|
export class MessageParticipantModule {}
|