diff --git a/backend/internal/data/repo/repo_items.go b/backend/internal/data/repo/repo_items.go index 6ae274b..6358a98 100644 --- a/backend/internal/data/repo/repo_items.go +++ b/backend/internal/data/repo/repo_items.go @@ -845,6 +845,7 @@ func (e *ItemsRepository) SetPrimaryPhotos(ctx context.Context, GID uuid.UUID) ( Where( item.HasGroupWith(group.ID(GID)), item.HasAttachmentsWith( + attachment.TypeEQ(attachment.TypePhoto), attachment.Not( attachment.And( attachment.Primary(true),