fix(code): no buckets

Signed-off-by: Andrew Hill <andrew@textile.io>
This commit is contained in:
Andrew Hill 2020-09-22 15:10:17 -07:00
parent ce39de2b25
commit 12a77dfa88
No known key found for this signature in database
GPG Key ID: B8929C9860377979

View File

@ -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) {