diff --git a/node_common/utilities.js b/node_common/utilities.js index 85d8ebe0..65b9f1ef 100644 --- a/node_common/utilities.js +++ b/node_common/utilities.js @@ -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) {