fix: dont throw if session not found for event details
This commit is contained in:
@@ -107,7 +107,9 @@ export const eventRouter = createTRPCRouter({
|
|||||||
|
|
||||||
let session: IServiceSession | undefined;
|
let session: IServiceSession | undefined;
|
||||||
if (res?.sessionId) {
|
if (res?.sessionId) {
|
||||||
session = await sessionService.byId(res?.sessionId, projectId);
|
session = await sessionService
|
||||||
|
.byId(res?.sessionId, projectId)
|
||||||
|
.catch(() => undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user