mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 01:28:13 -05:00
fix
This commit is contained in:
parent
ff0ff9a9ee
commit
417f99d94f
@ -107,10 +107,10 @@ func listServiceHistory(c *gin.Context) ([]*model.ServiceInfos, error) {
|
|||||||
infos, ok := resultMap[history.ServiceID]
|
infos, ok := resultMap[history.ServiceID]
|
||||||
if !ok {
|
if !ok {
|
||||||
infos = &model.ServiceInfos{
|
infos = &model.ServiceInfos{
|
||||||
ServiceID: history.ServiceID,
|
ServiceID: history.ServiceID,
|
||||||
ServerID: history.ServerID,
|
ServerID: history.ServerID,
|
||||||
// ServiceName: singleton.ServiceSentinel.Services[history.ServiceID].Name,
|
ServiceName: singleton.ServiceSentinelShared.Services[history.ServiceID].Name,
|
||||||
ServerName: singleton.ServerList[history.ServerID].Name,
|
ServerName: singleton.ServerList[history.ServerID].Name,
|
||||||
}
|
}
|
||||||
resultMap[history.ServiceID] = infos
|
resultMap[history.ServiceID] = infos
|
||||||
sortedServiceIDs = append(sortedServiceIDs, history.ServiceID)
|
sortedServiceIDs = append(sortedServiceIDs, history.ServiceID)
|
||||||
|
Loading…
Reference in New Issue
Block a user