Skip to content

Commit ec8f256

Browse files
docs: fix deleteManyAssets typo, arg is "assets", not "docs" (junobuild#145)
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent c6ae74f commit ec8f256

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/build/storage.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,17 @@ To delete multiple assets in an atomic manner, you can use the function `deleteM
195195
```typescript
196196
import { deleteManyAssets } from "@junobuild/core";
197197

198-
await deleteManyAssets({ docs: [myAsset1, myAsset2, myAsset3] });
198+
const myAsset1 = {
199+
collection: "hello",
200+
fullPath: "/hello/world.jpg"
201+
};
202+
203+
const myAsset2 = {
204+
collection: "data",
205+
fullPath: "/data/something.json"
206+
};
207+
208+
await deleteManyAssets({ assets: [myAsset1, myAsset2] });
199209
```
200210

201211
[satellite]: ../terminology.md#satellite

0 commit comments

Comments
 (0)