Align store calls with selected-company scoping and add entity numbers.
Drop companyId from company-scoped store wrappers and routes, add GET /entity/next-number plus optional number on entity create/update, and document dashdbschema API.md lookup in sibling-repos.
This commit is contained in:
@@ -65,12 +65,12 @@ export async function setCategoryIdsBySku(googleAuthId, sku, categoryIds) {
|
||||
return store.article.setCategoryIdsBySku(googleAuthId, sku, categoryIds);
|
||||
}
|
||||
|
||||
export async function listSearchIndex(googleAuthId, companyId) {
|
||||
export async function listSearchIndex(googleAuthId) {
|
||||
const store = await getStore();
|
||||
return store.article.listSearchIndex(googleAuthId, companyId);
|
||||
return store.article.listSearchIndex(googleAuthId);
|
||||
}
|
||||
|
||||
export async function listExport(googleAuthId, companyId, categoryId) {
|
||||
export async function listExport(googleAuthId, categoryId) {
|
||||
const store = await getStore();
|
||||
return store.article.listExport(googleAuthId, companyId, categoryId);
|
||||
return store.article.listExport(googleAuthId, categoryId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user