u
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user