u
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function createUnderParent({ googleAuthId, parentId, name }) {
|
||||
export async function createUnderParent({ googleAuthId, parentId, name, track_stock }) {
|
||||
const store = await getStore();
|
||||
return store.article.createUnderParent({ googleAuthId, parentId, name });
|
||||
return store.article.createUnderParent({ googleAuthId, parentId, name, track_stock });
|
||||
}
|
||||
|
||||
export async function getBySku(googleAuthId, sku) {
|
||||
@@ -60,6 +60,11 @@ export async function setWeightBySku(googleAuthId, sku, weight) {
|
||||
return store.article.setWeightBySku(googleAuthId, sku, weight);
|
||||
}
|
||||
|
||||
export async function setTrackStockBySku(googleAuthId, sku, trackStock) {
|
||||
const store = await getStore();
|
||||
return store.article.setTrackStockBySku(googleAuthId, sku, trackStock);
|
||||
}
|
||||
|
||||
export async function setCategoryIdsBySku(googleAuthId, sku, categoryIds) {
|
||||
const store = await getStore();
|
||||
return store.article.setCategoryIdsBySku(googleAuthId, sku, categoryIds);
|
||||
|
||||
Reference in New Issue
Block a user