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:
parent
25262b644f
commit
fdae0dcbe5
2 changed files with 3 additions and 1 deletions
|
@ -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',
|
Loading…
Reference in a new issue