forked from opentiny/tiny-engine
fix: Updated buildMaterials sqlcontent to use the correct field for identifying components (#1510)
This commit is contained in:
parent
512a160805
commit
2edf50c249
|
|
@ -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(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue