fix some bug and produce many problem to solve later

This commit is contained in:
2024-11-02 16:27:28 +07:00
parent e86d979ddb
commit 1a5577f8e6
15 changed files with 751 additions and 509 deletions

View File

@@ -24,12 +24,8 @@ export class GraphqlService {
const disableAuth = process.env.DISABLE_AUTH === 'true'
try {
sessionId = req.headers['x-session-id'] as string
} catch (error) {
Logger.error('Error acquiring context', error)
if (disableAuth) {
return null
}
throw new UnauthorizedException('Must provide a session ID')
} catch (_error) {
return null
}
if (disableAuth) {
return null