From b2a296c857021588369f19cec67bc2dea549384d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arwid=20Thornstr=C3=B6m?= Date: Mon, 23 Oct 2023 08:28:39 +0200 Subject: [PATCH] orientation should now be correct (#158) --- src/datasources/product-api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datasources/product-api.ts b/src/datasources/product-api.ts index fa2cc74..072a0c6 100644 --- a/src/datasources/product-api.ts +++ b/src/datasources/product-api.ts @@ -160,11 +160,12 @@ export class ProductAPI extends BaseSQLDataSource { row.type = this.getProductTypes(row); row.wallpaperTypes = this.getWallpaperTypes(row); row.designerId = row.designerid; - row.orientation = getOrientationString(row.fields); row.publishingDate = row.publishing_date; row.printProducts = this.getPrintProducts(row); row.blacklisting = this.getBlacklisting(row); + row.fields = this.getProductFields(row); + row.orientation = getOrientationString(row.fields); return row; }