File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export class Organisations extends Effect.Service<Organisations>()(
3939 yield * imageUploads . applyUpdate ( {
4040 payload : payload . image ,
4141 existing : Option . fromNullable ( organisation . iconUrl ) ,
42- keyPrefix : `organisations /${ organisation . id } ` ,
42+ keyPrefix : `organizations /${ organisation . id } ` ,
4343 update : ( db , urlOrKey ) =>
4444 db
4545 . update ( Db . organizations )
Original file line number Diff line number Diff line change @@ -48,14 +48,17 @@ export class S3Buckets extends Effect.Service<S3Buckets>()("S3Buckets", {
4848 const endpointIsPathStyle = ( endpoint : string , bucket : string ) => {
4949 try {
5050 const { hostname } = new URL ( endpoint ) ;
51- return ! hostname . startsWith ( `${ bucket } .s3` )
51+ return ! hostname . startsWith ( `${ bucket } .s3` ) ;
5252 } catch {
5353 // If endpoint can't be parsed as a URL, fall back to false for safety
5454 return true ;
5555 }
5656 } ;
5757
58- const createBucketClient = async ( bucket : S3Bucket . S3Bucket , name : string ) => {
58+ const createBucketClient = async (
59+ bucket : S3Bucket . S3Bucket ,
60+ name : string ,
61+ ) => {
5962 const endpoint = await ( ( ) => {
6063 const v = bucket . endpoint . pipe ( Option . getOrUndefined ) ;
6164 if ( ! v ) return ;
@@ -71,7 +74,7 @@ export class S3Buckets extends Effect.Service<S3Buckets>()("S3Buckets", {
7174 } ,
7275 forcePathStyle :
7376 Option . fromNullable ( endpoint ) . pipe (
74- Option . map ( e => endpointIsPathStyle ( e , name ) ) ,
77+ Option . map ( ( e ) => endpointIsPathStyle ( e , name ) ) ,
7578 Option . getOrNull ,
7679 ) ?? true ,
7780 useArnRegion : false ,
You can’t perform that action at this time.
0 commit comments