@unchainedshop/plugins 3.0.2 → 3.0.3

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.
@@ -74,7 +74,7 @@ export const MinioAdapter = {
74
74
  async createDownloadURL(file) {
75
75
  if (file.meta?.isPrivate)
76
76
  throw new Error("Minio Plugin doesn't support private files yet");
77
- return generateMinioUrl(file.name, file._id);
77
+ return generateMinioUrl(file.path, file._id);
78
78
  },
79
79
  async createSignedURL(directoryName, fileName) {
80
80
  if (!client)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unchainedshop/plugins",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "main": "lib/plugins-index.js",
5
5
  "types": "lib/plugins-index.d.ts",
6
6
  "exports": {
@@ -106,7 +106,7 @@ export const MinioAdapter: IFileAdapter = {
106
106
 
107
107
  async createDownloadURL(file) {
108
108
  if (file.meta?.isPrivate) throw new Error("Minio Plugin doesn't support private files yet");
109
- return generateMinioUrl(file.name, file._id);
109
+ return generateMinioUrl(file.path, file._id);
110
110
  },
111
111
 
112
112
  async createSignedURL(directoryName, fileName) {