mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -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 { authenticate } from '$lib/utils/auth';
|
||||||
|
import { getAssetInfoFromParam } from '$lib/utils/navigation';
|
||||||
import { getUserById } from '@immich/sdk';
|
import { getUserById } from '@immich/sdk';
|
||||||
import type { PageLoad } from './$types';
|
import type { PageLoad } from './$types';
|
||||||
|
|
||||||
|
@ -6,8 +7,9 @@ export const load = (async ({ params }) => {
|
||||||
await authenticate();
|
await authenticate();
|
||||||
|
|
||||||
const partner = await getUserById({ id: params.userId });
|
const partner = await getUserById({ id: params.userId });
|
||||||
|
const asset = await getAssetInfoFromParam(params);
|
||||||
return {
|
return {
|
||||||
|
asset,
|
||||||
partner,
|
partner,
|
||||||
meta: {
|
meta: {
|
||||||
title: 'Partner',
|
title: 'Partner',
|
Loading…
Add table
Reference in a new issue