This commit is contained in:
seb
2026-10-04 21:22:05 +02:00
parent 0268583ae3
commit 4718cb5726
48 changed files with 758 additions and 758 deletions

View File

@@ -64,7 +64,7 @@ export default function setOptionsByArticleSku(provider) {
const { articleId, companyId, companyuserId } = await resolve(googleAuthId, sku, runner);
const artRes = await runner.query(
'SELECT id, is_father, articlelist_id, optionslist_id FROM article WHERE id = @articleId',
'SELECT id, is_parent, articlelist_id, optionslist_id FROM article WHERE id = @articleId',
{ articleId },
);
const article = artRes.rows[0];
@@ -72,8 +72,8 @@ export default function setOptionsByArticleSku(provider) {
throw new Error('Article not found');
}
if (article.is_father) {
throw new Error('A father article cannot have options');
if (article.is_parent) {
throw new Error('A parent article cannot have options');
}
// If options is empty: clear optionslist