@runnerpro/backend 1.14.6 → 1.14.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.
|
@@ -280,6 +280,7 @@ const sendEmoji = (req, res, { sendNotification, firebaseMessaging, isClient })
|
|
|
280
280
|
const [isClientMessage] = yield (0, index_1.query)('SELECT [ID CLIENTE] FROM [CHAT MESSAGE] WHERE [ID] = ?', [messageId]);
|
|
281
281
|
if (isClientMessage.idCliente !== idCliente)
|
|
282
282
|
return res.send({ idReaction: null });
|
|
283
|
+
yield (0, index_1.query)('DELETE FROM [CHAT MESSAGE REACCION] WHERE [ID CHAT] = ? AND [ID SENDER] = ? AND [EMOJI] = ?', [messageId, userid, emoji]);
|
|
283
284
|
const [reaction] = yield (0, index_1.query)(`INSERT INTO [CHAT MESSAGE REACCION] ([EMOJI], [ID CHAT], [ID SENDER]) VALUES (?, ?, ?) RETURNING [ID]`, [
|
|
284
285
|
emoji,
|
|
285
286
|
messageId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SA0BpD,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SA0BpD,CAAC;AAqfF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|