use getOrCreate correctly by passing in an undefined thread name as the second argument

This commit is contained in:
@wwwjim 2020-11-21 14:25:29 -08:00
parent 43a6733f86
commit 82cbca5e5d

View File

@ -194,7 +194,7 @@ export const getBucketAPIFromUserToken = async ({ user, bucketName, encrypted =
let root = null;
console.log(`[ buckets ] getOrCreate init ${name}`);
try {
const created = await buckets.getOrCreate(name, encrypted);
const created = await buckets.getOrCreate(name, undefined, encrypted);
root = created.root;
} catch (e) {
console.log(`[ textile ] warning: ${e.message}`);