diff --git a/services/tasks/db/models/task_run.go b/services/tasks/db/models/task_run.go index 4e3413ec3..a945f71d9 100644 --- a/services/tasks/db/models/task_run.go +++ b/services/tasks/db/models/task_run.go @@ -2,7 +2,6 @@ package models import ( "github.com/jackc/pgtype" - "github.com/opengovern/opencomply/services/tasks/api" "gorm.io/gorm" ) @@ -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, - } -}