fix(medusa-file-spaces,medusa-file-s3,medusa-file-minio): Add options to super call in file plugins (#1714)

This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2022-06-24 09:15:57 +02:00
1 parent fa7163941d
commit a5f717be5a
3 files changed
+5 -5

No files matched your search

@@ -1,11 +1,11 @@
import fs from "fs"
import aws from "aws-sdk"
import { AbstractFileService } from '@medusajs/medusa'
import aws from "aws-sdk"
import fs from "fs"
class MinioService extends AbstractFileService {
constructor({}, options) {
super()
super({}, options)
this.bucket_ = options.bucket
this.accessKeyId_ = options.access_key_id
+1 -1
View File
@@ -4,7 +4,7 @@ import { AbstractFileService } from '@medusajs/medusa'
class S3Service extends AbstractFileService {
constructor({}, options) {
super()
super({}, options)
this.bucket_ = options.bucket
this.s3Url_ = options.s3_url
@@ -6,7 +6,7 @@ import stream from "stream"
class DigitalOceanService extends AbstractFileService {
constructor({}, options) {
super()
super({}, options)
this.bucket_ = options.bucket
this.spacesUrl_ = options.spaces_url?.replace(/\/$/, "")