Skip to content

Commit 4b0c103

Browse files
committed
fix: use project datasource for hub verification DB lookup
getRepository was imported from typeorm (legacy API) instead of @server/datasource, causing "Connection default not found" errors in the hub verification batch lookup path.
1 parent 894e375 commit 4b0c103

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/lib/collections/services/CollectionSyncService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,8 @@ export class CollectionSyncService {
881881
const { PlaceholderContextService } = await import(
882882
'@server/lib/placeholders/services/PlaceholderContextService'
883883
);
884-
const { getRepository, In } = await import('typeorm');
884+
const { getRepository } = await import('@server/datasource');
885+
const { In } = await import('typeorm');
885886

886887
// Dedupe by collectionRatingKey to avoid processing the same hub twice
887888
const seenRatingKeys = new Set<string>();

0 commit comments

Comments
 (0)