This commit is contained in:
seb
2026-10-04 18:57:00 +02:00
parent c5cb76a66c
commit a8e51724f8
3 changed files with 118 additions and 6 deletions

View File

@@ -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);