Remove product-type
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
||||
ProductInfoInput,
|
||||
ProductBlacklistMarketInput,
|
||||
ProductMaterials,
|
||||
ProductSizeTypes,
|
||||
ProductProportionsInput,
|
||||
Batch,
|
||||
Copyright,
|
||||
@@ -807,16 +806,10 @@ export class ProductAPI extends BaseSQLDataSource {
|
||||
const insertionProducts = [];
|
||||
// Insert in product-printproducts
|
||||
// TODO: Depracate typeid, its not used to check repeating
|
||||
const insertQuery = `INSERT INTO "product-printproducts" (productid, groupid, typeid) VALUES (?, ?, ?)`;
|
||||
const insertQuery = `INSERT INTO "product-printproducts" (productid, groupid) VALUES (?, ?)`;
|
||||
shouldAdd.forEach((groupId) => {
|
||||
insertionProducts.push(
|
||||
this.knex.raw(insertQuery, [
|
||||
productId,
|
||||
groupId,
|
||||
groupId === ProductGroup.WALLPAPER
|
||||
? ProductSizeTypes.TILING
|
||||
: ProductSizeTypes.SCALING,
|
||||
]),
|
||||
this.knex.raw(insertQuery, [productId, groupId]),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -84,12 +84,6 @@ export enum ProductMaterials {
|
||||
PREMIUM_FRAMED_PRINT = 6,
|
||||
}
|
||||
|
||||
export enum ProductSizeTypes {
|
||||
SCALING = 1,
|
||||
FIXED = 2,
|
||||
TILING = 3,
|
||||
}
|
||||
|
||||
export enum ProductType {
|
||||
UNKNOWN = 0,
|
||||
PHOTO = 1,
|
||||
|
||||
Reference in New Issue
Block a user