mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
upd: check if endpoint includes bunnycdn.com
This commit is contained in:
parent
97fb73ca2c
commit
3bdac95bfd
1 changed files with 2 additions and 2 deletions
|
@ -407,7 +407,7 @@ export class DriveService {
|
|||
);
|
||||
if (this.meta.objectStorageSetPublicRead) params.ACL = 'public-read';
|
||||
|
||||
if (this.meta.objectStorageAccessKey) {
|
||||
if (this.meta.objectStorageAccessKey && !this.meta.objectStorageEndpoint?.includes('bunnycdn.com')) {
|
||||
await this.s3Service.upload(this.meta, params)
|
||||
.then(
|
||||
result => {
|
||||
|
@ -820,7 +820,7 @@ export class DriveService {
|
|||
Bucket: this.meta.objectStorageBucket,
|
||||
Key: key,
|
||||
} as DeleteObjectCommandInput;
|
||||
if (this.meta.objectStorageAccessKey) {
|
||||
if (this.meta.objectStorageAccessKey && !this.meta.objectStorageEndpoint?.includes('bunnycdn.com')) {
|
||||
await this.s3Service.delete(this.meta, param);
|
||||
} else {
|
||||
await this.bunnyService.delete(this.meta, key);
|
||||
|
|
Loading…
Add table
Reference in a new issue