Skip to content

Commit 53be114

Browse files
committed
standardise s/z
1 parent 422a6c2 commit 53be114

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/web-backend/src/Organisations/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

packages/web-backend/src/S3Buckets/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)