Skip to content

Commit

Permalink
Use Source* consts as intended
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Lucidi <[email protected]>
  • Loading branch information
mansam committed Sep 29, 2023
1 parent 38c4828 commit 2ff6621
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ func (h ApplicationHandler) Get(ctx *gin.Context) {
r := Application{}
r.With(m, tags)
r.WithArchetypes(archetypes)
r.WithVirtualTags(archetypeTags, "archetype")
r.WithVirtualTags(resolver.AssessmentTags(), "assessment")
r.WithVirtualTags(archetypeTags, SourceArchetype)
r.WithVirtualTags(resolver.AssessmentTags(), SourceAssessment)
r.Assessed, err = resolver.Assessed()
if err != nil {
_ = ctx.Error(err)
Expand Down Expand Up @@ -210,8 +210,8 @@ func (h ApplicationHandler) List(ctx *gin.Context) {
r := Application{}
r.With(&list[i], tags)
r.WithArchetypes(archetypes)
r.WithVirtualTags(archetypeTags, "archetype")
r.WithVirtualTags(resolver.AssessmentTags(), "assessment")
r.WithVirtualTags(archetypeTags, SourceArchetype)
r.WithVirtualTags(resolver.AssessmentTags(), SourceAssessment)
r.Assessed, err = resolver.Assessed()
if err != nil {
_ = ctx.Error(err)
Expand Down Expand Up @@ -286,8 +286,8 @@ func (h ApplicationHandler) Create(ctx *gin.Context) {

r.With(m, tags)
r.WithArchetypes(archetypes)
r.WithVirtualTags(archetypeTags, "archetype")
r.WithVirtualTags(resolver.AssessmentTags(), "assessment")
r.WithVirtualTags(archetypeTags, SourceArchetype)
r.WithVirtualTags(resolver.AssessmentTags(), SourceArchetype)
r.Assessed, err = resolver.Assessed()
if err != nil {
_ = ctx.Error(err)
Expand Down

0 comments on commit 2ff6621

Please sign in to comment.