rez_core 5.0.121 → 5.0.122
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.
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ExportService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const excel_data_dto_1 = require("../../../utils/dto/excel-data.dto");
|
|
15
|
-
const
|
|
15
|
+
const path = require("path");
|
|
16
16
|
const fs_1 = require("fs");
|
|
17
17
|
const excel_helper_service_1 = require("../../../utils/service/excel-helper.service");
|
|
18
18
|
const attribute_master_service_1 = require("../../meta/service/attribute-master.service");
|
|
@@ -30,11 +30,11 @@ let ExportService = class ExportService {
|
|
|
30
30
|
const excelData = new excel_data_dto_1.ExcelData();
|
|
31
31
|
await this.populateExcelData(excelData, dto);
|
|
32
32
|
const modifiedDate = new Date().toISOString().replace(/[-T:.Z]/g, '');
|
|
33
|
-
const tempDir =
|
|
33
|
+
const tempDir = path.join(__dirname, '../../temp');
|
|
34
34
|
if (!fs_1.default.existsSync(tempDir)) {
|
|
35
35
|
fs_1.default.mkdirSync(tempDir, { recursive: true });
|
|
36
36
|
}
|
|
37
|
-
fileName =
|
|
37
|
+
fileName = path.join(tempDir, `export_${modifiedDate}.xlsx`);
|
|
38
38
|
excelData.filePath = fileName;
|
|
39
39
|
excel_helper_service_1.ExcelHelper.writeExcel(excelData);
|
|
40
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.service.js","sourceRoot":"","sources":["../../../../src/module/export/service/export.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,sEAA8D;AAC9D
|
|
1
|
+
{"version":3,"file":"export.service.js","sourceRoot":"","sources":["../../../../src/module/export/service/export.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,sEAA8D;AAC9D,6BAA6B;AAC7B,2BAAoB;A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