forked from JointCloud/pcm-coordinator
fix CenterResources bug
Signed-off-by: jagger <cossjie@foxmail.com>
This commit is contained in:
parent
98d071f750
commit
4afad4ea22
|
@ -45,7 +45,7 @@ func (l *CenterResourcesLogic) CenterResources() (*types.CenterResourcesResp, er
|
|||
}
|
||||
for _, centerIndex := range centersIndex {
|
||||
// Query the types of resource centers
|
||||
tx := l.svcCtx.DbEngin.Raw("select name,type as CenterType from t_adapter where id = ?", centerIndex.Id).Scan(¢erIndex)
|
||||
tx := l.svcCtx.DbEngin.Raw("select id,name,type as CenterType from t_adapter where id = ?", centerIndex.Id).Scan(¢erIndex)
|
||||
if tx.Error != nil {
|
||||
return nil, tx.Error
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue