implicitly join on the Album table

This commit is contained in:
stz184
2020-12-19 01:07:43 +02:00
parent 3ce4ab02cc
commit e5cb91532a

View File

@@ -39,7 +39,7 @@ func (r *Resolver) Search(ctx context.Context, query string, _limitMedia *int, _
WithoutParentheses: true}, WithoutParentheses: true},
}). }).
Limit(limitMedia). Limit(limitMedia).
Preload("Album"). Joins("Album").
Find(&photos).Error Find(&photos).Error
if err != nil { if err != nil {