mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 22:12:19 +03:00
buckets: delete is supported again
This commit is contained in:
parent
1513693d73
commit
ba470a6fde
@ -42,10 +42,10 @@ export default async (req, res) => {
|
||||
const i = await PrivateKey.fromString(user.data.tokens.api);
|
||||
const b = await Buckets.withKeyInfo(TEXTILE_KEY_INFO);
|
||||
const tokenResponse = await b.getToken(i);
|
||||
const openResponse = await b.open("data");
|
||||
const openResponse = await b.getOrInit("data");
|
||||
|
||||
try {
|
||||
const response = await b.remove(openResponse.key);
|
||||
const response = await b.remove(openResponse.root.key);
|
||||
console.log({ response });
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
Loading…
Reference in New Issue
Block a user