We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7a13e3 commit 70b996dCopy full SHA for 70b996d
1 file changed
services/libs/data-access-layer/src/repositories/index.ts
@@ -318,6 +318,7 @@ export interface IRepositoryMapping {
318
}
319
gitIntegrationId: string
320
sourceIntegrationId: string
321
+ sourcePlatform: string
322
323
324
/**
@@ -341,9 +342,11 @@ export async function getIntegrationReposMapping(
341
342
'name', s.name
343
) as segment,
344
r."gitIntegrationId",
- r."sourceIntegrationId"
345
+ r."sourceIntegrationId",
346
+ i.platform as "sourcePlatform"
347
FROM public.repositories r
348
JOIN segments s ON s.id = r."segmentId"
349
+ LEFT JOIN integrations i ON i.id = r."sourceIntegrationId"
350
WHERE (r."gitIntegrationId" = $(integrationId) OR r."sourceIntegrationId" = $(integrationId))
351
AND r."deletedAt" IS NULL
352
ORDER BY r.url
0 commit comments