mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:19:18 +00:00
implicitly join on the Album table
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user