From c0d077e58767e4af101f376650798a3f2f0b6c7c Mon Sep 17 00:00:00 2001 From: Christomatt Date: Sun, 1 Feb 2026 04:33:02 +0100 Subject: [PATCH] fix: use nullish coalescing for storageEndpoint --- src/app/api/bots/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/bots/route.ts b/src/app/api/bots/route.ts index 8e01f91..2e81f69 100644 --- a/src/app/api/bots/route.ts +++ b/src/app/api/bots/route.ts @@ -77,7 +77,7 @@ export async function POST(request: Request) { botAvatarUrl = await generateAndUploadAvatarToUserStorage( botHandle, - user.storageEndpoint, + user.storageEndpoint ?? undefined, user.storageRegion || 'auto', user.storageBucket, accessKeyId,