From 1f47529a41f9ef368eb94be3e3a911cf13bccc8d Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 11 Oct 2023 12:44:00 -0700 Subject: [PATCH] :bug: Static report app id needs to be a string. Signed-off-by: Jeff Ortel --- api/analysis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/analysis.go b/api/analysis.go index 680b73a69..1bcdecec8 100644 --- a/api/analysis.go +++ b/api/analysis.go @@ -2325,7 +2325,7 @@ func (r *ReportWriter) buildOutput(id uint) (path string, err error) { r.encoder = &jsonEncoder{output: file} r.write("window[\"apps\"]=[") r.begin() - r.field("id").write(strconv.Itoa(int(m.Application.ID))) + r.field("id").writeStr(strconv.Itoa(int(m.Application.ID))) r.field("name").writeStr(m.Application.Name) r.field("analysis").writeStr(strconv.Itoa(int(m.ID))) aWriter := AnalysisWriter{ctx: r.ctx}