1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(web): use correct api for asset share page (#1879)

This commit is contained in:
Michel Heusschen 2023-02-26 20:21:59 +01:00 committed by GitHub
parent 641c05c6fe
commit 3377fa4640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;