Fix: get the correct repo_id from postgres, use the mapping in responses

This commit is contained in:
Michael Hohn
2025-08-04 16:13:12 -07:00
committed by =Michael Hohn
parent 807d5f3d45
commit 750187fb12
3 changed files with 21 additions and 87 deletions

View File

@@ -18,6 +18,9 @@ type ServerState interface {
// TODO: fix this hacky logic
GetJobSpecByRepoId(sessionId int, jobRepoId int) (common.JobSpec, error)
// The repo id is uniquely determined by NameWithOwner
GetRepoId(owner common.NameWithOwner) int
// SetResult stores the analysis result for the specified session ID and repository.
SetResult(js common.JobSpec, ar queue.AnalyzeResult)