diff --git a/plugins/catalog-backend/src/next/Stitcher.ts b/plugins/catalog-backend/src/next/Stitcher.ts index f79a247b91..fe7a378338 100644 --- a/plugins/catalog-backend/src/next/Stitcher.ts +++ b/plugins/catalog-backend/src/next/Stitcher.ts @@ -88,7 +88,7 @@ export class Stitcher { } const relationResults = await tx('relations') - .where({ originating_entity_id: entityId }) + .where({ source_entity_ref: entityRef }) .select(); // TODO: entityRef is lower case and should be uppercase in the final result.