Skip to content

Commit 2edf50c

Browse files
authored
fix: Updated buildMaterials sqlcontent to use the correct field for identifying components (#1510)
1 parent 512a160 commit 2edf50c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/connection.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class MysqlConnection {
133133
const fields = [
134134
'version',
135135
'name',
136-
'component',
136+
'name_en',
137137
'icon',
138138
'description',
139139
'docUrl',
@@ -189,7 +189,7 @@ class MysqlConnection {
189189
})
190190

191191
sqlContent += values.join()
192-
sqlContent += ` where component = '${component.component}';`
192+
sqlContent += ` where name_en = '${component.component}';`
193193

194194
this.query(sqlContent, component.component)
195195
.then(() => {

0 commit comments

Comments
 (0)