@ejfdelgado/ejflab-back 1.18.2 → 1.18.4
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/EmailHandler.mjs +5 -0
- package/srv/PostgresSrv.mjs +4 -4
package/package.json
CHANGED
package/srv/EmailHandler.mjs
CHANGED
@@ -44,6 +44,11 @@ export class EmailHandler {
|
|
44
44
|
html: contenidoFinal,
|
45
45
|
};
|
46
46
|
|
47
|
+
if (body.replyTo) {
|
48
|
+
msg.replyTo = body.replyTo;
|
49
|
+
console.log(`replyTo: ${msg.replyTo}`);
|
50
|
+
}
|
51
|
+
|
47
52
|
console.log(`Using EMAIL_SENDER ${JSON.stringify(MyConstants.EMAIL_SENDER)}`);
|
48
53
|
//console.log(JSON.stringify(body.params, null, 4));
|
49
54
|
//console.log(JSON.stringify(contenidoFinal, null, 4));
|
package/srv/PostgresSrv.mjs
CHANGED
@@ -21,12 +21,12 @@ export class PostgresSrv {
|
|
21
21
|
return Number(bigNumber);
|
22
22
|
});
|
23
23
|
types.setTypeParser(types.builtins.NUMERIC, function (val) {
|
24
|
-
const bigNumber =
|
25
|
-
if (bigNumber
|
24
|
+
const bigNumber = parseFloat(val);
|
25
|
+
if (isNaN(bigNumber)) {
|
26
26
|
// Fallback...
|
27
|
-
return
|
27
|
+
return null;
|
28
28
|
}
|
29
|
-
return
|
29
|
+
return bigNumber;
|
30
30
|
});
|
31
31
|
}
|
32
32
|
static noQuotes(val, ...args) {
|