9675 - Fix material insert for new material (#195)

This commit is contained in:
Anders Gustafsson
2026-06-08 09:58:35 +02:00
committed by GitHub
parent dcf41787d2
commit eecc0f4f1b
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -851,6 +851,12 @@ export class ProductAPI extends BaseSQLDataSource {
ProductMaterials.PREMIUM_WALLPAPER, ProductMaterials.PREMIUM_WALLPAPER,
]), ]),
); );
insertMaterials.push(
this.knex.raw(insertMaterialQuery, [
printid,
ProductMaterials.MATTE_WALLPAPER,
]),
);
break; break;
case ProductGroup.CANVAS: case ProductGroup.CANVAS:
insertMaterials.push( insertMaterials.push(
+1
View File
@@ -84,6 +84,7 @@ export enum ProductMaterials {
PREMIUM_WALLPAPER = 4, PREMIUM_WALLPAPER = 4,
PREMIUM_POSTER = 5, PREMIUM_POSTER = 5,
PREMIUM_FRAMED_PRINT = 6, PREMIUM_FRAMED_PRINT = 6,
MATTE_WALLPAPER = 7,
} }
export enum ProductType { export enum ProductType {