mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-12 18:11:34 +08:00
fix: ai deploy bug
This commit is contained in:
@@ -26,7 +26,7 @@ func (s ServiceState) Int() int {
|
||||
case ServiceStateDeployError:
|
||||
return 2
|
||||
default:
|
||||
return -1
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -282,6 +282,7 @@ func toServiceItem(model *service.Service) *service_dto.ServiceItem {
|
||||
|
||||
switch model.Kind {
|
||||
case service.RestService:
|
||||
item.State = model.ServiceType.String()
|
||||
return item
|
||||
case service.AIService:
|
||||
provider := auto.UUID(model.AdditionalConfig["provider"])
|
||||
|
||||
Reference in New Issue
Block a user