refactor(server): merge duplicate TypeOrmModule.forFeature calls in MessagingMessageCleanerModule (#21150)

Combined two separate `TypeOrmModule.forFeature()` calls into one. Both
registered entities on the default data source, so no behavioral change.
Repositories for WorkspaceEntity and MessageChannelEntity remain
injectable as before.
Cleaner imports, one less redundant call.
This commit is contained in:
Anish Paudel
2026-06-02 19:55:36 +05:45
committed by GitHub
parent 3aae4330b6
commit b422550fcc
@@ -17,10 +17,9 @@ import { MessagingMessageCleanerService } from 'src/modules/messaging/message-cl
@Module({
imports: [
TypeOrmModule.forFeature([WorkspaceEntity]),
TypeOrmModule.forFeature([WorkspaceEntity, MessageChannelEntity]),
FeatureFlagModule,
MessagingCommonModule,
TypeOrmModule.forFeature([MessageChannelEntity]),
WorkspaceIteratorModule,
],
providers: [