streamby-core 0.25.3 → 0.25.5

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.
@@ -77,7 +77,7 @@ class S3Adapter {
77
77
  await this.s3.send(command);
78
78
  }
79
79
  async listFilesByCategory(projectId, category) {
80
- const prefix = `projects/${projectId}/${category}/`;
80
+ const prefix = `${projectId}/${category}/`;
81
81
  const command = new client_s3_1.ListObjectsV2Command({ Bucket: this.bucket, Prefix: prefix });
82
82
  const result = await this.s3.send(command);
83
83
  if (!result.Contents || result.Contents.length === 0)
@@ -107,7 +107,7 @@ function storageRouter(config) {
107
107
  if (!adapter.getPresignedUploadUrl) {
108
108
  return res.status(501).json({ message: 'Storage adapter does not support presigned uploads' });
109
109
  }
110
- const key = `projects/${projectId}/${category}/${sanitizeFilename(fileName)}`;
110
+ const key = `${projectId}/${category}/${sanitizeFilename(fileName)}`;
111
111
  const url = await adapter.getPresignedUploadUrl(key, contentType);
112
112
  res.json({ url });
113
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "streamby-core",
3
- "version": "0.25.3",
3
+ "version": "0.25.5",
4
4
  "description": "StreamBy middleware framework for media storage management",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",