@ejfdelgado/ejflab-back 1.27.1 → 1.27.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.
- package/package.json +1 -1
- package/srv/MainHandler.mjs +4 -1
package/package.json
CHANGED
package/srv/MainHandler.mjs
CHANGED
@@ -106,7 +106,9 @@ export class MainHandler {
|
|
106
106
|
if (rootFolder) {
|
107
107
|
options.push(path.join(rootFolder, filename));
|
108
108
|
}
|
109
|
-
|
109
|
+
if (process.env.ENV != "pro") {
|
110
|
+
options.push(path.join(MainHandler.LOCAL_FOLDER1, filename));
|
111
|
+
}
|
110
112
|
options.push(path.join(MainHandler.LOCAL_FOLDER, filename));
|
111
113
|
|
112
114
|
// Check which exists first, if not resolve null with log
|
@@ -122,6 +124,7 @@ export class MainHandler {
|
|
122
124
|
if (!selected) {
|
123
125
|
console.log(`Files not found ${options}`);
|
124
126
|
resolve(null);
|
127
|
+
return;
|
125
128
|
}
|
126
129
|
|
127
130
|
const somePath = selected;
|