u
This commit is contained in:
@@ -217,13 +217,13 @@ Returns the change history of an article by its SKU.
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<Array<{id: number, companyuserId: number|null, date: string, text: string}>>` — The article history entries.
|
||||
`Promise<Array<{id: number, companyuserId: number|null, date: string, text: string, meta: string|null}>>` — The article history entries.
|
||||
|
||||
**Example**
|
||||
|
||||
```js
|
||||
const history = await store.article.getHistoryBySku(42, 'SKU-1');
|
||||
// => [{ id, companyuserId, date, text }]
|
||||
// => [{ id, companyuserId, date, text, meta }]
|
||||
|
||||
const recent = await store.article.getHistoryBySku(42, 'SKU-1', { limit: 5 });
|
||||
// => up to 5 most recent entries
|
||||
|
||||
Reference in New Issue
Block a user