@ejfdelgado/ejflab-back 1.14.0 → 1.15.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-back",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ejfdelgado/ejflab-back.git"
@@ -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
  );
@@ -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) {