u
This commit is contained in:
@@ -90,6 +90,13 @@ export async function addChild(googleAuthId, sku, options) {
|
||||
return store.article.addChild(googleAuthId, sku, options);
|
||||
}
|
||||
|
||||
export async function attachChild(googleAuthId, sku, options) {
|
||||
const store = await getStore();
|
||||
return store.article.attachChild
|
||||
? store.article.attachChild(googleAuthId, sku, options)
|
||||
: store.article.addChild(googleAuthId, sku, { ...options, attach: true });
|
||||
}
|
||||
|
||||
export async function removeChild(googleAuthId, sku, childSku, options) {
|
||||
const store = await getStore();
|
||||
return store.article.removeChild(googleAuthId, sku, childSku, options);
|
||||
|
||||
Reference in New Issue
Block a user