Skip to content

Commit

Permalink
修复自定义数据库的扫描任务,如果没有查询结果,被自动已读的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
l3yx committed Dec 21, 2023
1 parent 3f3e474 commit f54fc7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/taskmanager/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func Consumer() {
resultCount += len(codeQLSarif.Results)
processor.AddTaskTotalResultsCount(&task, len(codeQLSarif.Results))
processor.WriteTaskLog(&task, fmt.Sprintf("扫描结果数量:%d", len(codeQLSarif.Results)))
processor.AddTaskAnalyzedVersion(&task, "null")
processor.CreateTaskResult("null", "nul", resultFileName, len(codeQLSarif.Results), task.ID)
} else {
panic("未知扫描模式:" + strconv.Itoa(task.ProjectMode))
Expand Down

0 comments on commit f54fc7f

Please sign in to comment.