diff options
Diffstat (limited to 'backend/taskqueue')
| -rw-r--r-- | backend/taskqueue/processor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/taskqueue/processor.go b/backend/taskqueue/processor.go index ca180e9..098b565 100644 --- a/backend/taskqueue/processor.go +++ b/backend/taskqueue/processor.go @@ -168,7 +168,7 @@ func (p *ExecProcessor) ProcessTask(ctx context.Context, t *asynq.Task) error { if resData.Result != "success" { err := p.q.CreateTestcaseExecution(ctx, db.CreateTestcaseExecutionParams{ SubmissionID: submissionID, - TestcaseID: &testcase.TestcaseID, + TestcaseID: testcase.TestcaseID, Status: resData.Result, Stdout: resData.Stdout, Stderr: resData.Stderr, @@ -185,7 +185,7 @@ func (p *ExecProcessor) ProcessTask(ctx context.Context, t *asynq.Task) error { if !isTestcaseExecutionCorrect(testcase.Stdout, resData.Stdout) { err := p.q.CreateTestcaseExecution(ctx, db.CreateTestcaseExecutionParams{ SubmissionID: submissionID, - TestcaseID: &testcase.TestcaseID, + TestcaseID: testcase.TestcaseID, Status: "wrong_answer", Stdout: resData.Stdout, Stderr: resData.Stderr, |
