fix(medusa-file-spaces,medusa-file-s3,medusa-file-minio): Add options to super call in file plugins (#1714)
This commit is contained in:
committed by
GitHub
parent
fa7163941d
commit
a5f717be5a
@@ -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
|
||||
|
||||
@@ -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(/\/$/, "")
|
||||
|
||||
Reference in New Issue
Block a user