fixes missing shrares in search results

This commit is contained in:
Christian Beutel
2025-04-26 19:48:31 +02:00
parent 29ea15b36f
commit acc16a6f2c
2 changed files with 3 additions and 0 deletions

View File

@@ -197,6 +197,7 @@ export const defaultTrailSearchAttributes = [
"thumbnail",
"gpx",
"tags",
"shares",
"_geo",]

View File

@@ -458,6 +458,8 @@ export async function fetchGPX(trail: { gpx?: string } & Record<string, any>, f:
async function searchResultToTrailList(hits: Hits<TrailSearchResult>): Promise<Trail[]> {
const trails: Trail[] = []
for (const h of hits) {
console.log(h);
const t: Trail & RecordModel = {
collectionId: "trails",
collectionName: "trails",