From 2edf50c2497bb41238eb8f43b30e143da81ccd62 Mon Sep 17 00:00:00 2001 From: timtian Date: Tue, 22 Jul 2025 11:43:45 +0800 Subject: [PATCH] fix: Updated buildMaterials sqlcontent to use the correct field for identifying components (#1510) --- scripts/connection.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/connection.mjs b/scripts/connection.mjs index e452e9047..8752b4bf9 100644 --- a/scripts/connection.mjs +++ b/scripts/connection.mjs @@ -133,7 +133,7 @@ class MysqlConnection { const fields = [ 'version', 'name', - 'component', + 'name_en', 'icon', 'description', 'docUrl', @@ -189,7 +189,7 @@ class MysqlConnection { }) sqlContent += values.join() - sqlContent += ` where component = '${component.component}';` + sqlContent += ` where name_en = '${component.component}';` this.query(sqlContent, component.component) .then(() => {