From 572b078563e82d379dfd9b42da21cea5e2b6f792 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Mon, 19 Apr 2021 15:27:59 +0200 Subject: [PATCH] Find relations by source_entity_ref Signed-off-by: Johan Haals --- plugins/catalog-backend/src/next/Stitcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.