@runnerpro/backend 1.13.1 → 1.13.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.
|
@@ -224,7 +224,7 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, isClient }
|
|
|
224
224
|
// Si es entrenador, se marca leído cuando se envía un mensaje
|
|
225
225
|
yield markReadMessage({ isClient, idCliente });
|
|
226
226
|
// Cambiar el tono del texto a uno neutro y corregir la ortografía
|
|
227
|
-
text = cambiarTonoEntrenadorNeutro(text);
|
|
227
|
+
text = yield cambiarTonoEntrenadorNeutro(text);
|
|
228
228
|
}
|
|
229
229
|
// Devuelve el texto en el otro idioma si el cliente no habla español y el idioma del cliente
|
|
230
230
|
const { textSpanish, textPreferredLanguage, preferredLanguage } = yield getPreferredLanguageForChat({
|
|
@@ -406,6 +406,7 @@ const cambiarTonoEntrenadorNeutro = (text) => __awaiter(void 0, void 0, void 0,
|
|
|
406
406
|
El mensaje es: ${text}
|
|
407
407
|
El mensaje corregido es:
|
|
408
408
|
`);
|
|
409
|
+
console.log('textCorregido', textCorregido);
|
|
409
410
|
return textCorregido;
|
|
410
411
|
});
|
|
411
412
|
const resizeImage = (data, filePath, mimetype) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAuBpD,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAuBpD,CAAC;AAsaF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|