mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
fix(web): don't log unauthorized errors (#1871)
* fix(web): don't log unauthorized errors * fix docker build error
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
import type { LayoutServerLoad } from './$types';
|
||||
|
||||
export const load = (async ({ locals: { api } }) => {
|
||||
try {
|
||||
const { data: user } = await api.userApi.getMyUserInfo();
|
||||
|
||||
return { user };
|
||||
} catch (e) {
|
||||
console.error('[ERROR] layout.server.ts [LayoutServerLoad]: ');
|
||||
return { user: undefined };
|
||||
}
|
||||
export const load = (async ({ locals: { user } }) => {
|
||||
return { user };
|
||||
}) satisfies LayoutServerLoad;
|
||||
|
||||
Reference in New Issue
Block a user