u
This commit is contained in:
@@ -26,3 +26,16 @@ export async function listBySku(googleAuthId, sku, transactionType) {
|
||||
const store = await getStore();
|
||||
return store.ledger.listBySku(googleAuthId, sku, transactionType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lists ledger entries across all articles with pagination, seekMonths, and search.
|
||||
*
|
||||
* @param {number} googleAuthId - The id of the Google auth user.
|
||||
* @param {object} [opts] - Query options.
|
||||
* @returns {Promise<object>} Paged ledger history.
|
||||
*/
|
||||
export async function listHistory(googleAuthId, opts) {
|
||||
const store = await getStore();
|
||||
return store.ledger.listHistory(googleAuthId, opts);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user