Skip to content

Commit

Permalink
refactor(syncer): alias to ORM with new spec DS
Browse files Browse the repository at this point in the history
  • Loading branch information
MStreet3 committed Nov 21, 2024
1 parent 694dfe9 commit 176e363
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
58 changes: 58 additions & 0 deletions core/services/workflows/syncer/mocks/orm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion core/services/workflows/syncer/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ type WorkflowSpecsDS interface {
CreateWorkflowSpec(ctx context.Context, spec *job.WorkflowSpec) (int64, error)
}

type WorkflowRegistryDS = WorkflowSecretsDS
type ORM interface {
WorkflowSecretsDS
WorkflowSpecsDS
}

type WorkflowRegistryDS = ORM

type orm struct {
ds sqlutil.DataSource
Expand Down

0 comments on commit 176e363

Please sign in to comment.