Fix graphql api not returning stdout/stderr as strings

This commit is contained in:
2023-02-24 23:20:40 -07:00
parent 3ae27bffc5
commit 712a7b1429
+2 -2
View File
@@ -222,7 +222,7 @@ func createSchema(db database.Database) (graphql.Schema, error) {
Description: "The stdout used to validate the run.",
Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if run, ok := p.Source.(database.Run); ok {
return run.Stdout, nil
return string(run.Stdout), nil
}
return nil, nil
},
@@ -232,7 +232,7 @@ func createSchema(db database.Database) (graphql.Schema, error) {
Description: "The stderr used to validate the run.",
Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if run, ok := p.Source.(database.Run); ok {
return run.Stderr, nil
return string(run.Stderr), nil
}
return nil, nil
},