From 3377fa46404c2e0048b035e150803e7c7ef6faab Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Sun, 26 Feb 2023 20:21:59 +0100 Subject: [PATCH] fix(web): use correct api for asset share page (#1879) --- web/src/routes/share/[key]/+page.server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/routes/share/[key]/+page.server.ts b/web/src/routes/share/[key]/+page.server.ts index e89ce1eea5..3db0b8740d 100644 --- a/web/src/routes/share/[key]/+page.server.ts +++ b/web/src/routes/share/[key]/+page.server.ts @@ -2,11 +2,11 @@ export const prerender = false; import { error } from '@sveltejs/kit'; import { getThumbnailUrl } from '$lib/utils/asset-utils'; -import { api, ThumbnailFormat } from '@api'; +import { ThumbnailFormat } from '@api'; import type { PageServerLoad } from './$types'; import featurePanelUrl from '$lib/assets/feature-panel.png'; -export const load: PageServerLoad = async ({ params, parent }) => { +export const load: PageServerLoad = async ({ params, parent, locals: { api } }) => { const { user } = await parent(); const { key } = params;