scheduler-node-models 1.2.59 → 1.2.60
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
|
@@ -58,8 +58,11 @@ class ExcelRowIngest {
|
|
|
58
58
|
&& name.toLowerCase() !== 'N/A') {
|
|
59
59
|
console.log(name);
|
|
60
60
|
if (this.site.employees) {
|
|
61
|
+
console.log(this.site.employees.length);
|
|
62
|
+
let found = false;
|
|
61
63
|
this.site.employees.forEach(emp => {
|
|
62
64
|
if (emp.name.getLastFirst().toLowerCase() === name.toLowerCase()) {
|
|
65
|
+
found = true;
|
|
63
66
|
for (let c = 3; c < 34; c++) {
|
|
64
67
|
async () => {
|
|
65
68
|
const colDate = new Date(this.docDate.getTime() + (24 * 3600000 * (c - 3)));
|
|
@@ -117,6 +120,9 @@ class ExcelRowIngest {
|
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
});
|
|
123
|
+
if (!found) {
|
|
124
|
+
throw new Error('Employee not found');
|
|
125
|
+
}
|
|
120
126
|
}
|
|
121
127
|
else {
|
|
122
128
|
throw new Error('No employees in site');
|