From 0cd2bdae14de63888e4569fdf27cfeb69a08e468 Mon Sep 17 00:00:00 2001 From: liuzx Date: Thu, 15 Dec 2022 11:37:58 +0800 Subject: [PATCH] fix-3393 --- routers/api/v1/repo/cloudbrain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index b1602958e..e5cfbc86c 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -771,6 +771,7 @@ func CloudbrainGetLog(ctx *context.APIContext) { content = content + ctx.Data["existStr"].(string) if result["Lines"].(int) == 0 { result["Lines"] = 1 + result["EndLine"] = result["StartLine"] } } }