update websocket

This commit is contained in:
2024-11-06 17:16:10 +07:00
parent ef5c753ce4
commit 57037a59ec
18 changed files with 129 additions and 71 deletions

View File

@@ -43,8 +43,10 @@ export class ClerkAuthGuard implements CanActivate {
request.user = session.user
return true
} catch (error: any) {
throw new UnauthorizedException(error.message)
} catch (error: unknown) {
throw new UnauthorizedException(
error instanceof Error ? error.message : 'Unknown error',
)
}
}
}