Skip to content

Commit

Permalink
fix: tasks result query
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadch91 committed Jan 1, 2025
1 parent 32ff246 commit 888f30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/tasks/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (db Database) GetTask(id string) (*models.Task, error) {
// GetTaskRunResult retrieves a task result by Task ID
func (db Database) GetTaskRunResult(id string) (*models.TaskRun, error) {
var task *models.TaskRun
tx := db.Orm.Where("id = ?", id).
tx := db.Orm.Where("task_id = ?", id).
Order("created_at desc").
First(&task)
if tx.Error != nil {
Expand Down

0 comments on commit 888f30d

Please sign in to comment.