@runnerpro/backend 1.12.12 → 1.12.13

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.
@@ -167,7 +167,7 @@ const getConversationImage = (req, res, { bucket, isClient }) => __awaiter(void
167
167
  mimetype: result.message.mimetype,
168
168
  });
169
169
  });
170
- const getConversationThumbnail = (req, res, { bucket, isClient }) => __awaiter(void 0, void 0, void 0, function* () {
170
+ const getConversationThumbnail = (req, res, { bucket }) => __awaiter(void 0, void 0, void 0, function* () {
171
171
  const { id: idVideo } = req.params;
172
172
  const [file] = yield bucket.file(`Chat/${idVideo}-thumbnail`).exists();
173
173
  if (!file)
@@ -189,6 +189,7 @@ const getConversationFile = (req, res, { bucket, isClient }) => __awaiter(void 0
189
189
  });
190
190
  if (!result)
191
191
  return res.status(404).send('Not found');
192
+ console.log(result);
192
193
  res.writeHead(200, {
193
194
  'Content-Type': result.message.text,
194
195
  'Content-disposition': 'inline',
@@ -203,6 +204,7 @@ const getChatFile = ({ bucket, id, isClient, userid }) => __awaiter(void 0, void
203
204
  isClient,
204
205
  userid,
205
206
  ]);
207
+ console.log({ message });
206
208
  if (!message)
207
209
  return null;
208
210
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAuBpD,CAAC;AAyYF,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,SAuBpD,CAAC;AA4YF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.12.12",
3
+ "version": "1.12.13",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"