fix(medusa-file-spaces,medusa-file-s3,medusa-file-minio): Add options to super call in file plugins (#1714)
This commit is contained in:
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 { AbstractFileService } from '@medusajs/medusa'
|
||||||
|
import aws from "aws-sdk"
|
||||||
|
import fs from "fs"
|
||||||
|
|
||||||
class MinioService extends AbstractFileService {
|
class MinioService extends AbstractFileService {
|
||||||
|
|
||||||
constructor({}, options) {
|
constructor({}, options) {
|
||||||
super()
|
super({}, options)
|
||||||
|
|
||||||
this.bucket_ = options.bucket
|
this.bucket_ = options.bucket
|
||||||
this.accessKeyId_ = options.access_key_id
|
this.accessKeyId_ = options.access_key_id
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { AbstractFileService } from '@medusajs/medusa'
|
|||||||
|
|
||||||
class S3Service extends AbstractFileService {
|
class S3Service extends AbstractFileService {
|
||||||
constructor({}, options) {
|
constructor({}, options) {
|
||||||
super()
|
super({}, options)
|
||||||
|
|
||||||
this.bucket_ = options.bucket
|
this.bucket_ = options.bucket
|
||||||
this.s3Url_ = options.s3_url
|
this.s3Url_ = options.s3_url
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import stream from "stream"
|
|||||||
|
|
||||||
class DigitalOceanService extends AbstractFileService {
|
class DigitalOceanService extends AbstractFileService {
|
||||||
constructor({}, options) {
|
constructor({}, options) {
|
||||||
super()
|
super({}, options)
|
||||||
|
|
||||||
this.bucket_ = options.bucket
|
this.bucket_ = options.bucket
|
||||||
this.spacesUrl_ = options.spaces_url?.replace(/\/$/, "")
|
this.spacesUrl_ = options.spaces_url?.replace(/\/$/, "")
|
||||||
|
|||||||
Reference in new issue
Block a user