Skip to content

Commit

Permalink
Merge pull request #2321 from opengovern/fix-tasks
Browse files Browse the repository at this point in the history
fix: remove import cycle
  • Loading branch information
artaasadi authored Dec 28, 2024
2 parents 700a027 + 3b40d53 commit 096c945
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions services/tasks/db/models/task_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package models

import (
"github.com/jackc/pgtype"
"github.com/opengovern/opencomply/services/tasks/api"
"gorm.io/gorm"
)

Expand All @@ -25,14 +24,3 @@ type TaskRun struct {
Result pgtype.JSONB
FailureMessage string
}

func (tr TaskRun) ToAPI() api.TaskRun {
return api.TaskRun{
ID: tr.ID,
CreatedAt: tr.CreatedAt,
UpdatedAt: tr.UpdatedAt,
TaskID: tr.TaskID,
Status: string(tr.Status),
FailureMessage: tr.FailureMessage,
}
}

0 comments on commit 096c945

Please sign in to comment.