@runnerpro/backend 1.14.3 → 1.14.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.
@@ -106,7 +106,9 @@ const getConversation = (req, res, { isClient }) => __awaiter(void 0, void 0, vo
106
106
  yield markReadMessage({ isClient, idCliente });
107
107
  });
108
108
  const fillReacciones = (message, reacciones) => {
109
- message.reacciones = reacciones.filter((r) => Number(r.idChat) === Number(message.id));
109
+ message.reacciones = reacciones
110
+ .filter((r) => Number(r.idChat) === Number(message.id))
111
+ .map((r) => (Object.assign(Object.assign({}, r), { isClient: r.idSender === message.idCliente })));
110
112
  };
111
113
  const deleteConversationMessage = (req, res, { isClient }) => __awaiter(void 0, void 0, void 0, function* () {
112
114
  const { id } = req.params;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAyBpD,CAAC;AAkfF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAyBpD,CAAC;AAofF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.14.3",
3
+ "version": "1.14.4",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"