1
Fork 0

implicitly join on the Album table

This commit is contained in:
stz184 2020-12-19 01:07:43 +02:00
parent 3ce4ab02cc
commit e5cb91532a
1 changed files with 1 additions and 1 deletions

View File

@ -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 {