Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

don't 401 if no custom bucket

Brendan Allane47fc3f940b1
diff --git a/apps/web/app/api/upload/signed/route.ts b/apps/web/app/api/upload/signed/route.ts
index ea4366a12..4e834a685 100644
--- a/apps/web/app/api/upload/signed/route.ts
+++ b/apps/web/app/api/upload/signed/route.ts
@@ -57,14 +57,6 @@ export async function POST(request: NextRequest) {
.select()
.from(s3Buckets)
.where(eq(s3Buckets.ownerId, user.id));
- if (!bucket) {
- return new Response(JSON.stringify({ error: true }), {
- status: 401,
- headers: {
- "Content-Type": "application/json",
- },
- });
- }
const s3Client = createS3Client(bucket);