fix(core.gbapp): SaaS missing in PROD.

This commit is contained in:
me@rodrigorodriguez.com 2024-09-26 13:58:24 -03:00
parent 6eb08cf798
commit f847c09c89

View file

@ -437,7 +437,7 @@ export class GBDeployer implements IGBDeployer {
let rows: any[] = [];
let obj: any = {};
const workbook = new Excel.Workbook();
const workbook = new Excel.Workbook();
if (await GBUtil.exists(xls)) {
await workbook.xlsx.readFile(xls);
@ -467,10 +467,14 @@ export class GBDeployer implements IGBDeployer {
}
await asyncPromise.eachSeries(rows, async (line: any) => {
if (line && line.length > 0) {
obj[line[1]] = line[2];
const key = line[1]?.trim();
const value = line[2]?.trim();
if (key && value) {
obj[key] = value;
}
}
});
GBLogEx.info(min, `Processing ${rows.length} rows from ${path.basename(filePath)}...`);
rows = null;
return obj;