@ejfdelgado/ejflab-back 1.14.0 → 1.16.0
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 +2 -2
- package/srv/EmailHandler.mjs +1 -0
- package/srv/SocketIOCall.mjs +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ejfdelgado/ejflab-back",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.16.0",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/ejfdelgado/ejflab-back.git"
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"license": "ISC",
|
19
19
|
"private": false,
|
20
20
|
"dependencies": {
|
21
|
-
"@ejfdelgado/ejflab-common": "1.
|
21
|
+
"@ejfdelgado/ejflab-common": "1.10.0",
|
22
22
|
"@google-cloud/compute": "^4.7.0",
|
23
23
|
"@google-cloud/firestore": "^7.9.0",
|
24
24
|
"@google-cloud/storage": "^7.11.3",
|
package/srv/EmailHandler.mjs
CHANGED
@@ -8,6 +8,7 @@ import MyDatesBack from "@ejfdelgado/ejflab-common/src/MyDatesBack.mjs";
|
|
8
8
|
export class EmailHandler {
|
9
9
|
static async send(req, res) {
|
10
10
|
const useDebug = false;
|
11
|
+
console.log(`Using SEND_GRID_VARIABLE ${process.env.SEND_GRID_VARIABLE.substring(0, 5)}...`);
|
11
12
|
sgMail.setApiKey(
|
12
13
|
process.env.SEND_GRID_VARIABLE
|
13
14
|
);
|
package/srv/SocketIOCall.mjs
CHANGED
@@ -221,7 +221,7 @@ export class SocketIOCall {
|
|
221
221
|
try {
|
222
222
|
defaultModel = headers.model;
|
223
223
|
const room = headers.room;
|
224
|
-
if (defaultModel && room) {
|
224
|
+
if (defaultModel && defaultModel != "undefined" && room) {
|
225
225
|
const defaultModelJson = JSON.parse(defaultModel);
|
226
226
|
const dataRoom = SocketIOCall.getRoomLiveTupleModel(room);
|
227
227
|
if (dataRoom) {
|