orientation should now be correct (#158)

This commit is contained in:
Arwid Thornström
2023-10-23 08:28:39 +02:00
committed by GitHub
parent 0ffeacc638
commit b2a296c857
+2 -1
View File
@@ -160,11 +160,12 @@ export class ProductAPI extends BaseSQLDataSource {
row.type = this.getProductTypes(row); row.type = this.getProductTypes(row);
row.wallpaperTypes = this.getWallpaperTypes(row); row.wallpaperTypes = this.getWallpaperTypes(row);
row.designerId = row.designerid; row.designerId = row.designerid;
row.orientation = getOrientationString(row.fields);
row.publishingDate = row.publishing_date; row.publishingDate = row.publishing_date;
row.printProducts = this.getPrintProducts(row); row.printProducts = this.getPrintProducts(row);
row.blacklisting = this.getBlacklisting(row); row.blacklisting = this.getBlacklisting(row);
row.fields = this.getProductFields(row); row.fields = this.getProductFields(row);
row.orientation = getOrientationString(row.fields);
return row; return row;
} }