Skip to content

Commit ce88ef5

Browse files
committed
fix(storage): key issues
1 parent b82efc6 commit ce88ef5

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ next-env.d.ts
6666
.cursor/
6767
*.swp
6868
*.swo
69+
emberly.site.conf
6970

7071
# Database
7172
prisma/*.db

packages/lib/storage/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,16 @@ export async function getProviderForStoredFile(
199199

200200
const bucket = await prisma.storageBucket.findUnique({
201201
where: { id: storageBucketId },
202+
select: {
203+
id: true,
204+
provider: true,
205+
s3Bucket: true,
206+
s3Region: true,
207+
s3AccessKeyId: true,
208+
s3SecretKey: true,
209+
s3Endpoint: true,
210+
s3ForcePathStyle: true,
211+
},
202212
})
203213

204214
if (!bucket) {

0 commit comments

Comments
 (0)