mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 04:54:32 +00:00
upd: remove old check
This commit is contained in:
parent
3bdac95bfd
commit
6dae5c9165
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.objectStorageSetPublicRead) params.ACL = 'public-read';
|
||||||
|
|
||||||
if (this.meta.objectStorageAccessKey && !this.meta.objectStorageEndpoint?.includes('bunnycdn.com')) {
|
if (!this.meta.objectStorageEndpoint?.includes('bunnycdn.com')) {
|
||||||
await this.s3Service.upload(this.meta, params)
|
await this.s3Service.upload(this.meta, params)
|
||||||
.then(
|
.then(
|
||||||
result => {
|
result => {
|
||||||
|
@ -820,7 +820,7 @@ export class DriveService {
|
||||||
Bucket: this.meta.objectStorageBucket,
|
Bucket: this.meta.objectStorageBucket,
|
||||||
Key: key,
|
Key: key,
|
||||||
} as DeleteObjectCommandInput;
|
} as DeleteObjectCommandInput;
|
||||||
if (this.meta.objectStorageAccessKey && !this.meta.objectStorageEndpoint?.includes('bunnycdn.com')) {
|
if (!this.meta.objectStorageEndpoint?.includes('bunnycdn.com')) {
|
||||||
await this.s3Service.delete(this.meta, param);
|
await this.s3Service.delete(this.meta, param);
|
||||||
} else {
|
} else {
|
||||||
await this.bunnyService.delete(this.meta, key);
|
await this.bunnyService.delete(this.meta, key);
|
||||||
|
|
Loading…
Add table
Reference in a new issue