fix: pass lat/lng/name to placePhoto in PDF thumbnail fetch

Without these args, the Wikimedia fallback (used when no Google Maps key
is configured) silently skips the fetch because lat/lng are NaN. The plan
view (PlaceAvatar/photoService) already passes all three; this aligns the
PDF path with the same behaviour.
This commit is contained in:
jubnl
2026-04-21 14:21:11 +02:00
parent 232dc78cc9
commit 9f70b56a3a
+1 -1
View File
@@ -101,7 +101,7 @@ async function fetchPlacePhotos(assignments) {
await Promise.allSettled(
toFetch.map(async (place) => {
try {
const data = await mapsApi.placePhoto(place.google_place_id || place.osm_id)
const data = await mapsApi.placePhoto(place.google_place_id || place.osm_id, place.lat, place.lng, place.name)
if (data.photoUrl) photoMap[place.id] = data.photoUrl
} catch {}
})