From 0ebb0ad076c21ad2941464cbcbd669de3e4e5221 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 16 Jan 2026 09:33:21 -0800 Subject: [PATCH] fix(contribution): use Symbol token for SYNCED_DATA_REPOSITORY injection The GetTeamTreeQuery was importing SYNCED_DATA_REPOSITORY as a Symbol from the domain interface, but InfrastructureModule defined its own string token. This caused NestJS dependency resolution to fail. Co-Authored-By: Claude Opus 4.5 --- .../src/infrastructure/infrastructure.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/contribution-service/src/infrastructure/infrastructure.module.ts b/backend/services/contribution-service/src/infrastructure/infrastructure.module.ts index 09582d6b..c41b50f7 100644 --- a/backend/services/contribution-service/src/infrastructure/infrastructure.module.ts +++ b/backend/services/contribution-service/src/infrastructure/infrastructure.module.ts @@ -13,11 +13,11 @@ import { KafkaModule } from './kafka/kafka.module'; import { KafkaProducerService } from './kafka/kafka-producer.service'; import { CDCConsumerService } from './kafka/cdc-consumer.service'; import { RedisModule } from './redis/redis.module'; +import { SYNCED_DATA_REPOSITORY } from '../domain/repositories/synced-data.repository.interface'; // Repository injection tokens export const CONTRIBUTION_ACCOUNT_REPOSITORY = 'CONTRIBUTION_ACCOUNT_REPOSITORY'; export const CONTRIBUTION_RECORD_REPOSITORY = 'CONTRIBUTION_RECORD_REPOSITORY'; -export const SYNCED_DATA_REPOSITORY = 'SYNCED_DATA_REPOSITORY'; @Module({ imports: [PrismaModule, KafkaModule, RedisModule],