fix some bug and produce many problem to solve later
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user