Skip to content

Commit

Permalink
fix: remove import cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Dec 28, 2024
1 parent 10bb644 commit 3b40d53
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 3b40d53

Please sign in to comment.