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:
+1
-2
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user