Skip to content

Commit

Permalink
fix(filesystem-aws-s3): use new type for ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Oct 19, 2023
1 parent a150e3d commit dd08c77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/filesystem-aws-s3/src/s3-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
PutObjectCommand,
S3Client,
S3ClientConfigType,
ObjectCannedACL
} from '@aws-sdk/client-s3';
import { normalizePath } from 'typedoc';

Expand Down Expand Up @@ -76,7 +77,7 @@ export class FilesystemAwsS3Adapter implements FilesystemAdapter {
return `https://${this.options.bucket}.s3.${this.options.region}.amazonaws.com/${this.getRemotePath(path)}`;
}

protected visibilityToAcl(visibility: FileVisibility): string {
protected visibilityToAcl(visibility: FileVisibility): ObjectCannedACL {
if (visibility === 'public') return 'public-read';
return 'private';
}
Expand Down

0 comments on commit dd08c77

Please sign in to comment.