@runnerpro/backend 1.10.5 → 1.10.7
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.
|
@@ -93,23 +93,19 @@ const getConversation = (req, res, { query, isClient }) => __awaiter(void 0, voi
|
|
|
93
93
|
});
|
|
94
94
|
// TODO: Tener en cuenta para el flujo de sugerir mensaje
|
|
95
95
|
const deleteConversationMessage = (req, res, { query, isClient }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
yield query('DELETE FROM [CHAT MESSAGE] WHERE [ID] = ?', [id]);
|
|
112
|
-
}
|
|
96
|
+
// const { id } = req.params;
|
|
97
|
+
// const [message] = await query('SELECT [ID] FROM [CHAT MESSAGE] WHERE [ID] = ? AND (? = FALSE OR [ID CLIENTE] = ?)', [
|
|
98
|
+
// id,
|
|
99
|
+
// isClient,
|
|
100
|
+
// req.session.userid,
|
|
101
|
+
// ]);
|
|
102
|
+
// console.log('message', message);
|
|
103
|
+
// if (!message) return res.status(404).send('Not found');
|
|
104
|
+
// if (isClient) {
|
|
105
|
+
// await query('UPDATE [CHAT MESSAGE] SET [ELIMINADO] = TRUE WHERE [ID] = ?', [id]);
|
|
106
|
+
// } else {
|
|
107
|
+
yield query('DELETE FROM [CHAT MESSAGE] WHERE [ID] = ?', ['146584']);
|
|
108
|
+
// }
|
|
113
109
|
res.send({ status: 'ok' });
|
|
114
110
|
});
|
|
115
111
|
// TODO: Sugerencias de texto
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAYA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAoBpD,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAYA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAoBpD,CAAC;AA+QF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|