u
This commit is contained in:
@@ -432,6 +432,8 @@ SELECT
|
||||
a.sku,
|
||||
at.name,
|
||||
at.slug,
|
||||
at.[desc] AS description,
|
||||
at.seo AS seo,
|
||||
a.unitamount,
|
||||
a.weight,
|
||||
a.track_stock,
|
||||
|
||||
@@ -3,6 +3,8 @@ export const ARTICLE_DETAIL_COLUMNS = `
|
||||
a.sku,
|
||||
at.name,
|
||||
at.slug,
|
||||
at.[desc] AS description,
|
||||
at.seo,
|
||||
a.unitamount,
|
||||
a.weight,
|
||||
a.track_stock,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
export const CREATE = `
|
||||
INSERT INTO articletext (article_id, language_id, name, slug)
|
||||
VALUES (@articleId, @languageId, @name, @slug)
|
||||
INSERT INTO articletext (article_id, language_id, name, slug, [desc], seo)
|
||||
VALUES (@articleId, @languageId, @name, @slug, @desc, @seo)
|
||||
`;
|
||||
|
||||
export const UPDATE_BY_ARTICLE_AND_LANGUAGE = `
|
||||
UPDATE articletext
|
||||
SET name = @name, slug = @slug
|
||||
SET name = @name, slug = @slug, [desc] = @desc, seo = @seo
|
||||
WHERE article_id = @articleId AND language_id = @languageId
|
||||
`;
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ WITH auth AS (
|
||||
SELECT auth.*,
|
||||
json_object(
|
||||
'id', a.id, 'sku', a.sku, 'name', at.name, 'slug', at.slug,
|
||||
'description', at."desc", 'seo', at.seo,
|
||||
'unitamount', a.unitamount, 'weight', a.weight,
|
||||
'track_stock', a.track_stock,
|
||||
'unitSi', u.si, 'unitBasesi', u.basesi,
|
||||
|
||||
Reference in New Issue
Block a user