website refactor

This commit is contained in:
2026-01-17 22:55:03 +01:00
parent 64d9e7fd16
commit 69d4cce7f1
64 changed files with 1146 additions and 1014 deletions

View File

@@ -25,8 +25,9 @@ export class SessionService implements Service {
async getSession(): Promise<Result<SessionViewModel | null, DomainError>> {
try {
const res = await this.authService.getSession();
if (!res) return Result.ok(null);
const data = (res as any).value || res;
if (res.isErr()) return Result.err(res.getError());
const data = res.unwrap();
if (!data || !data.user) return Result.ok(null);
return Result.ok(new SessionViewModel(data.user));
} catch (error: unknown) {