fix: Updated buildMaterials sqlcontent to use the correct field for identifying components (#1510)

This commit is contained in:
timtian 2025-07-22 11:43:45 +08:00 committed by GitHub
parent 512a160805
commit 2edf50c249
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class MysqlConnection {
const fields = [ const fields = [
'version', 'version',
'name', 'name',
'component', 'name_en',
'icon', 'icon',
'description', 'description',
'docUrl', 'docUrl',
@ -189,7 +189,7 @@ class MysqlConnection {
}) })
sqlContent += values.join() sqlContent += values.join()
sqlContent += ` where component = '${component.component}';` sqlContent += ` where name_en = '${component.component}';`
this.query(sqlContent, component.component) this.query(sqlContent, component.component)
.then(() => { .then(() => {