This commit is contained in:
seb
2026-10-12 18:36:57 +02:00
parent 10b1d53f9d
commit 64d1772842
8 changed files with 72 additions and 24 deletions

View File

@@ -171,7 +171,7 @@ const articles = await store.category.getCategoryArticles(42, 5);
*Source: `src/store/category/getTreeForCompany.js`*
Returns the full category tree for the user's selected company together with its articles and the posterminal ids assigned to each category.
Returns the full category tree for the user's selected company together with the article count and the posterminal ids assigned to each category.
**Parameters**
@@ -182,13 +182,13 @@ Returns the full category tree for the user's selected company together with its
**Returns**
`Promise<{languageId: number, tree: Array<object>, articles: Array<object>}>` — The category tree, articles and language.
`Promise<{languageId: number, tree: Array<{id: number, parentId: number|null, sort: number, name: string|null, slug: string|null, fullHash: string|null, thumbW: number|null, thumbH: number|null, thumbHash: string|null, articleCount: number, posterminalIds: number[]}>, articleCount: number}>` — The category tree and article count.
**Example**
```js
const tree = await store.category.getTreeForCompany(42);
// => { languageId, tree: [{ id, posterminalIds, ... }], articles: [...] }
// => { languageId, tree: [{ id, articleCount, posterminalIds, ... }], articleCount: 25 }
```
## `category.move`