fix: dont throw if session not found for event details

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-08 20:32:55 +01:00
parent 969c0bc8fe
commit 315e4a59a3

View File

@@ -107,7 +107,9 @@ export const eventRouter = createTRPCRouter({
let session: IServiceSession | undefined;
if (res?.sessionId) {
session = await sessionService.byId(res?.sessionId, projectId);
session = await sessionService
.byId(res?.sessionId, projectId)
.catch(() => undefined);
}
return {