From eecc0f4f1b3ac579529dc9c16447e1bc9739f6c5 Mon Sep 17 00:00:00 2001 From: Anders Gustafsson <34234789+anders-photowall@users.noreply.github.com> Date: Mon, 8 Jun 2026 09:58:35 +0200 Subject: [PATCH] 9675 - Fix material insert for new material (#195) --- src/datasources/product-api.ts | 6 ++++++ src/types/product-types.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/src/datasources/product-api.ts b/src/datasources/product-api.ts index 0fa57fc..7e780a1 100644 --- a/src/datasources/product-api.ts +++ b/src/datasources/product-api.ts @@ -851,6 +851,12 @@ export class ProductAPI extends BaseSQLDataSource { ProductMaterials.PREMIUM_WALLPAPER, ]), ); + insertMaterials.push( + this.knex.raw(insertMaterialQuery, [ + printid, + ProductMaterials.MATTE_WALLPAPER, + ]), + ); break; case ProductGroup.CANVAS: insertMaterials.push( diff --git a/src/types/product-types.ts b/src/types/product-types.ts index 82d96e4..2b387a3 100644 --- a/src/types/product-types.ts +++ b/src/types/product-types.ts @@ -84,6 +84,7 @@ export enum ProductMaterials { PREMIUM_WALLPAPER = 4, PREMIUM_POSTER = 5, PREMIUM_FRAMED_PRINT = 6, + MATTE_WALLPAPER = 7, } export enum ProductType {