Skip to content

Commit e0c001c

Browse files
committed
updates createBucket params
1 parent dc333ec commit e0c001c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/storage/StorageApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export class StorageApi {
5353
/**
5454
* Retrieves the details of an existing Storage bucket.
5555
*
56-
* @param name A name of the bucket you are creating.
56+
* @param id A unique identifier for the bucket you are creating.
5757
*/
58-
async createBucket(name: string): Promise<{ data: Bucket | null; error: Error | null }> {
58+
async createBucket(id: string): Promise<{ data: Bucket | null; error: Error | null }> {
5959
try {
60-
const data = await post(`${this.url}/bucket`, { name }, { headers: this.headers })
60+
const data = await post(`${this.url}/bucket`, { id, name: id }, { headers: this.headers })
6161
return { data, error: null }
6262
} catch (error) {
6363
return { data: null, error }

0 commit comments

Comments
 (0)