@runnerpro/backend 1.14.13 → 1.14.14

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.
@@ -201,7 +201,7 @@ const getConversationFile = (req, res, { bucket, isClient }) => __awaiter(void 0
201
201
  });
202
202
  if (!result)
203
203
  return res.status(404).send('Not found');
204
- if (result.message.mimetype.includes('video')) {
204
+ if (result.message.mimetype.includes('video') && isClient) {
205
205
  res.setHeader('Cache-Control', 'public, max-age=604800');
206
206
  res.setHeader('Expires', new Date(Date.now() + 604800000).toUTCString());
207
207
  res.send({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.14.13",
3
+ "version": "1.14.14",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"