@dascompany/product 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,6 @@ import DatabaseConnection from "../DatabaseConnection";
|
|
|
4
4
|
import FileConnectionTypeE from "../types/FileConnectionTypeE";
|
|
5
5
|
import PriceConverter from "../utils/PriceConverter";
|
|
6
6
|
import createQueryOptionsForId from "../utils/createQueryOptionsForId";
|
|
7
|
-
import getTentInstallationPrice from "../utils/getTentInstallationPrice";
|
|
8
7
|
export default class ProductReader {
|
|
9
8
|
static async get(queryOption) {
|
|
10
9
|
const productRow = await DatabaseConnection.getInstance().products.select(queryOption);
|
|
@@ -13,7 +12,6 @@ export default class ProductReader {
|
|
|
13
12
|
queryOptionsFiles.setOrderBy([{ key: 'sequence', order: 'asc' }]);
|
|
14
13
|
const files = await FilesReader.getForConnection(queryOptionsFiles);
|
|
15
14
|
const product = await this.correctProduct(productRow);
|
|
16
|
-
product.installationPrice = await getTentInstallationPrice(product);
|
|
17
15
|
return { ...product, files };
|
|
18
16
|
}
|
|
19
17
|
static async getAll(queryOption) {
|