Return empty strings for batch and copyright (#31)

This commit is contained in:
Niklas Fondberg
2021-09-07 12:26:39 +02:00
committed by GitHub
parent 4fee798bae
commit f73cc8be5f
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -104,6 +104,8 @@ export class ProductAPI extends BaseSQLDataSource {
row.fields = this.getProductFields(row);
row.designerId = row.designerid;
row.orientation = this.getOrientation(row.fields);
row.copyright = row.copyright ?? '';
row.batch = row.batch ?? '';
return row;
}
+2 -2
View File
@@ -262,7 +262,7 @@ type ProductFields {
photowallResolution: Int
canvasResolution: Int
wallpaperResolution: Int
copyright: String
copyright: String!
proportionsWarning: String
marginWidthMax: Int
marginWidthMin: Int
@@ -272,7 +272,7 @@ type ProductFields {
focusYpoint: Float
focusXpoint2: Float
focusYpoint2: Float
batch: String
batch: String!
imageResolution: Int
printFileWidth: Int
printFileHeight: Int