mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-21 03:09:50 +03:00
fix(logs): add temp threadID log
Signed-off-by: Andrew Hill <andrew@textile.io>
This commit is contained in:
parent
a143844f50
commit
4d38b20ba6
@ -129,7 +129,6 @@ export const getBucketAPIFromUserToken = async (token, user) => {
|
||||
await buckets.getToken(identity);
|
||||
|
||||
// TODO(jim): Put this call into a file for all Textile related calls.
|
||||
let target;
|
||||
console.log(`[buckets] getOrCreate`);
|
||||
try {
|
||||
|
||||
@ -139,6 +138,7 @@ export const getBucketAPIFromUserToken = async (token, user) => {
|
||||
// Get a default thread to store our buckets
|
||||
const res = await client.getThread('buckets')
|
||||
buckets.withThread(res.id.toString())
|
||||
console.log(`[buckets] getThread success ${res.id.toString()}`);
|
||||
} catch (error) {
|
||||
if (error.message !== 'Thread not found') {
|
||||
throw new Error(error.message)
|
||||
@ -147,6 +147,7 @@ export const getBucketAPIFromUserToken = async (token, user) => {
|
||||
await client.newDB(newId, 'buckets')
|
||||
threadID = newId.toString()
|
||||
buckets.withThread(threadID)
|
||||
console.log(`[buckets] newDB success ${newId.toString()}`);
|
||||
}
|
||||
|
||||
const roots = await buckets.list()
|
||||
|
Loading…
Reference in New Issue
Block a user