scheduler-node-models 1.2.47 → 1.2.49

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.2.47",
3
+ "version": "1.2.49",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -35,6 +35,11 @@ class ExcelRowIngest {
35
35
  const result = [];
36
36
  // get the company password from the team database object's company list
37
37
  let password = '';
38
+ this.team.companies.forEach(co => {
39
+ if (this.company.toLowerCase() === co.id.toLowerCase()) {
40
+ password = co.ingestPwd;
41
+ }
42
+ });
38
43
  // create test patterns for hours, if value doesn't match the hours pattern, it will
39
44
  // be assumed to be a leave code
40
45
  const hPattern = "^[0-9]{1,2}(\.[0-9]+)?$";
@@ -51,7 +56,7 @@ class ExcelRowIngest {
51
56
  }
52
57
  const fileBinary = Buffer.from(fileDataU8);
53
58
  const workbook = new exceljs_1.Workbook();
54
- console.log(password);
59
+ console.log(`password = ${password}`);
55
60
  await workbook.xlsx.load(fileBinary.buffer, { password: password });
56
61
  const worksheet = workbook.getWorksheet(1);
57
62
  if (worksheet) {