@runnerpro/backend 1.8.8 → 1.8.9
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.
|
@@ -153,6 +153,7 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, query, isC
|
|
|
153
153
|
query,
|
|
154
154
|
});
|
|
155
155
|
yield query('INSERT INTO [CHAT MESSAGE] ([ID CLIENTE], [ID SENDER], [TEXT], [TEXT PREFERRED LANGUAGE], [PREFERRED LANGUAGE], [REPLY MESSAGE ID], [TYPE]) VALUES (?, ?, ?, ?, ?, ?, ?)', [isClient ? userid : idCliente, userid, textSpanish, textPreferredLanguage, preferredLanguage, replyMessageId, 1]);
|
|
156
|
+
res.send({ status: 'ok' });
|
|
156
157
|
if (!isClient) {
|
|
157
158
|
sendNotification({
|
|
158
159
|
firebaseMessaging,
|
|
@@ -169,7 +170,6 @@ const sendMessage = (req, res, { sendNotification, firebaseMessaging, query, isC
|
|
|
169
170
|
});
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
|
-
res.send({ status: 'ok' });
|
|
173
173
|
});
|
|
174
174
|
const getPreferredLanguageForChat = ({ text, idCliente, isClient, query }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
175
175
|
const [{ preferredLanguage }] = yield query('SELECT [PREFERRED LANGUAGE] FROM [CLIENTE] WHERE [ID] = ?', [idCliente]);
|