From fcbb9038392fc4c996d13713ae58d7f20cc3124f Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Sat, 20 Dec 2025 15:06:43 +0100 Subject: [PATCH] Backend error fixed --- backend/services/falukantService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/falukantService.js b/backend/services/falukantService.js index e243dff..1d10aba 100644 --- a/backend/services/falukantService.js +++ b/backend/services/falukantService.js @@ -212,7 +212,7 @@ async function calcRegionalSellPrice(product, knowledgeFactor, regionId, worthPe JOIN falukant_type.region rt2 ON rt2.id = reg.region_type_id JOIN ancestors a ON reg.id = a.parent_id ) - SELECT COALESCE(SUM(CASE WHEN ${exemptTypesString} && ARRAY[region_type] THEN 0 ELSE tax_percent END),0) AS total FROM ancestors;`, + SELECT COALESCE(SUM(CASE WHEN ${exemptTypesString} && ARRAY[region_type]::text[] THEN 0 ELSE tax_percent END),0) AS total FROM ancestors;`, { replacements: { id: regionId }, type: sequelize.QueryTypes.SELECT