Skip to content

Commit

Permalink
fix: default bucketId during creation (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos authored Oct 23, 2023
1 parent 4e0dd88 commit ffc4926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/routes/bucket/createBucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default async function routes(fastify: FastifyInstance) {
} = request.body

await request.storage.createBucket({
id: id ?? bucketName,
id: id || bucketName,
name: bucketName,
owner,
public: isPublic ?? false,
Expand Down

0 comments on commit ffc4926

Please sign in to comment.