We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45df36e commit b20442bCopy full SHA for b20442b
frontend/client/views/pipeline/detail.vue
@@ -352,7 +352,7 @@ export default {
352
jobLog () {
353
var jobid = null
354
if (this.job) {
355
- jobid = this.job.intervalID
+ jobid = this.job.internalID
356
}
357
358
// Route
handlers/pipeline_run.go
@@ -148,7 +148,11 @@ func GetJobLogs(c echo.Context) error {
148
jL.Finished = true
149
150
151
- return c.JSON(http.StatusOK, *jL)
+ // We always return an array.
152
+ // It makes a bit easier in the frontend.
153
+ jobLogsList := []jobLogs{}
154
+ jobLogsList = append(jobLogsList, *jL)
155
+ return c.JSON(http.StatusOK, jobLogsList)
156
157
158
0 commit comments