fixes serverside pb usage

This commit is contained in:
Christian Beutel
2025-04-18 14:15:20 +02:00
parent 5024ade9ba
commit 69a5bbb5b9
7 changed files with 15 additions and 12 deletions

View File

@@ -8,6 +8,7 @@
import { show_toast } from "$lib/stores/toast_store.svelte";
import { fetchGPX, trails_index, trails_upload } from "$lib/stores/trail_store";
import { processUploadQueue, uploadStore, type Upload } from "$lib/stores/upload_store.svelte";
import { currentUser } from "$lib/stores/user_store";
import { getFileURL, saveAs } from "$lib/util/file_util";
import { trail2gpx } from "$lib/util/gpx_util";
import { gpx } from "$lib/vendor/toGeoJSON/toGeoJSON";
@@ -78,7 +79,7 @@
}
trail.expand!.gpx_data = gpxData;
const trailFolder = zip.folder(`${trail.name}`);
let fileData: string = await trail2gpx(trail);
let fileData: string = await trail2gpx(trail, $currentUser);
if (exportSettings.fileFormat == "json") {
fileData = JSON.stringify(
gpx(