Skip to content

Commit

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

Signed-off-by: Sam Lucidi <[email protected]>
  • Loading branch information
mansam authored Oct 27, 2023
1 parent 5df7718 commit bbd32b4
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 bbd32b4

Please sign in to comment.