mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-30 02:12:38 +03:00
fix(code): no buckets
Signed-off-by: Andrew Hill <andrew@textile.io>
This commit is contained in:
parent
ce39de2b25
commit
12a77dfa88
@ -153,7 +153,7 @@ export const getBucketAPIFromUserToken = async (token, user) => {
|
||||
const roots = await buckets.list()
|
||||
let root = roots.find((bucket) => bucket.name === BUCKET_NAME)
|
||||
if (!root) {
|
||||
const created = await this.create(BUCKET_NAME)
|
||||
const created = await buckets.create(BUCKET_NAME)
|
||||
root = created.root
|
||||
}
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user