@runnerpro/backend 1.4.3 → 1.4.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.
@@ -155,6 +155,7 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, query, isC
155
155
  const { text } = req.body;
156
156
  const { userid } = req.session;
157
157
  const idCliente = isClient ? req.session.userid : req.body.idCliente;
158
+ console.log(1);
158
159
  // Devuelve el texto en el otro idioma si el cliente no habla español y el idioma del cliente
159
160
  const { textSpanish, textPreferredLanguage, preferredLanguage } = yield getPreferredLanguageForChat({
160
161
  text,
@@ -162,7 +163,9 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, query, isC
162
163
  isClient,
163
164
  query,
164
165
  });
166
+ console.log(2);
165
167
  yield query('INSERT INTO [CHAT MESSAGE] ([ID CLIENTE], [ID SENDER], [TEXT], [TEXT PREFERRED LANGUAGE], [PREFERRED LANGUAGE], [TYPE]) VALUES (?, ?, ?, ?, ?, 1)', [isClient ? userid : idCliente, userid, textSpanish, textPreferredLanguage, preferredLanguage]);
168
+ console.log(3);
166
169
  if (!isClient) {
167
170
  sendNotification({
168
171
  firebaseMessaging,
@@ -179,6 +182,7 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, query, isC
179
182
  },
180
183
  });
181
184
  }
185
+ console.log(4);
182
186
  res.send({ status: 'ok' });
183
187
  console.log('read from sendMessage');
184
188
  // Si es entrenador, se marca leído cuando se envía un mensaje
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAmBpD,CAAC;AA2SF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAmBpD,CAAC;AAmTF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"