mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04: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
@ -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…
x
Reference in New Issue
Block a user