Skip to content

Commit

Permalink
👻 Preload Archetype assessment stakeholder relations (konveyor#548)
Browse files Browse the repository at this point in the history
This was missed in the original PR. konveyor#544

Signed-off-by: Sam Lucidi <[email protected]>
  • Loading branch information
mansam authored and aufi committed Oct 30, 2023
1 parent 410af4d commit b65f7a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/archetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (h ArchetypeHandler) Update(ctx *gin.Context) {
func (h ArchetypeHandler) AssessmentList(ctx *gin.Context) {
m := &model.Archetype{}
id := h.pk(ctx)
db := h.preLoad(h.DB(ctx), clause.Associations)
db := h.preLoad(h.DB(ctx), clause.Associations, "Assessments.Stakeholders", "Assessments.StakeholderGroups")
result := db.First(m, id)
if result.Error != nil {
_ = ctx.Error(result.Error)
Expand Down

0 comments on commit b65f7a5

Please sign in to comment.