mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:09:05 +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},
|
WithoutParentheses: true},
|
||||||
}).
|
}).
|
||||||
Limit(limitMedia).
|
Limit(limitMedia).
|
||||||
Preload("Album").
|
Joins("Album").
|
||||||
Find(&photos).Error
|
Find(&photos).Error
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user