Fix: get the correct repo_id from postgres, use the mapping in responses
This commit is contained in:
committed by
=Michael Hohn
parent
807d5f3d45
commit
750187fb12
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user