Skip to content

Commit

Permalink
fix: orm GetTaskOfProver
Browse files Browse the repository at this point in the history
  • Loading branch information
yiweichi committed Dec 30, 2024
1 parent a75075d commit 1c5d88d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coordinator/internal/orm/prover_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ func (o *ProverTask) GetTaskOfProver(ctx context.Context, taskType message.Proof
db = db.Where("task_id", taskID)
db = db.Where("prover_public_key", proverPublicKey)
db = db.Where("prover_version", proverVersion)
db = db.Limit(1)

var proverTask ProverTask
err := db.First(&proverTask).Error
err := db.Find(&proverTask).Error
if err != nil {
return nil, fmt.Errorf("ProverTask.GetTaskOfProver error: %w, taskID: %v, publicKey:%s", err, taskID, proverPublicKey)
}
Expand Down

0 comments on commit 1c5d88d

Please sign in to comment.