make ci catalog
This commit is contained in:
@@ -43,7 +43,8 @@ func (o *GeneralController) GetAll() {
|
||||
Groups: groups,
|
||||
Admin: true,
|
||||
}
|
||||
newWorkflow, err = newWorkflow.ExtractFromPlantUML(file, req)
|
||||
var importWarnings []string
|
||||
newWorkflow, importWarnings, err = newWorkflow.ExtractFromPlantUML(file, req)
|
||||
if err != nil {
|
||||
o.Data["json"] = map[string]interface{}{
|
||||
"data": nil,
|
||||
@@ -55,9 +56,10 @@ func (o *GeneralController) GetAll() {
|
||||
}
|
||||
|
||||
o.Data["json"] = map[string]interface{}{
|
||||
"data": newWorkflow,
|
||||
"code": 200,
|
||||
"error": nil,
|
||||
"data": newWorkflow,
|
||||
"code": 200,
|
||||
"error": nil,
|
||||
"warnings": importWarnings,
|
||||
}
|
||||
|
||||
o.ServeJSON()
|
||||
@@ -93,7 +95,6 @@ func Websocket(ctx context.Context, user string, groups []string, dataType int,
|
||||
for {
|
||||
select {
|
||||
case msg, ok := <-infrastructure.SearchStream[user]:
|
||||
fmt.Println("msg", msg, ok)
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user