implicitly join on the Album table
This commit is contained in:
parent
3ce4ab02cc
commit
e5cb91532a
|
@ -39,7 +39,7 @@ func (r *Resolver) Search(ctx context.Context, query string, _limitMedia *int, _
|
|||
WithoutParentheses: true},
|
||||
}).
|
||||
Limit(limitMedia).
|
||||
Preload("Album").
|
||||
Joins("Album").
|
||||
Find(&photos).Error
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue