0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 00:50:23 -05:00

fix(web): permanent url for partner page (#9158)

* fix(web): permanent url for partner page

* fix: format
This commit is contained in:
Alex 2024-04-29 12:16:17 -05:00 committed by GitHub
parent 25262b644f
commit fdae0dcbe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
import { authenticate } from '$lib/utils/auth';
import { getAssetInfoFromParam } from '$lib/utils/navigation';
import { getUserById } from '@immich/sdk';
import type { PageLoad } from './$types';
@ -6,8 +7,9 @@ export const load = (async ({ params }) => {
await authenticate();
const partner = await getUserById({ id: params.userId });
const asset = await getAssetInfoFromParam(params);
return {
asset,
partner,
meta: {
title: 'Partner',