From b3c722cd2b0cbcbdd8b725a8492caca39b9f04e1 Mon Sep 17 00:00:00 2001 From: Christopher Blanchard Date: Wed, 6 Mar 2024 09:28:52 +0000 Subject: [PATCH] Fix --- src/app/models/postcode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/models/postcode.ts b/src/app/models/postcode.ts index e1eb7317..58d97fdd 100644 --- a/src/app/models/postcode.ts +++ b/src/app/models/postcode.ts @@ -243,7 +243,7 @@ const joinString: string = Object.freeze( .map((r) => { return ` LEFT OUTER JOIN ${r.table} ${r.alt ? r.alt : ""} - ON postcodes.${r.key}=${r.table}.${r.foreignKey} + ON postcodes.${r.key}=${r.alt ? r.alt : r.table}.${r.foreignKey} `; }) .join(" ")