Remove three old env variables (#2297)
* remove three old env variables IS_DATA_MODEL_SETTINGS_ENABLED IS_DEVELOPERS_SETTINGS_ENABLED FLEXIBLE_BACKEND_ENABLED * Fix database:reset script * Removing unused variable --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -58,8 +58,8 @@ import { ExceptionFilter } from './filters/exception.filter';
|
||||
// Extract JWT from the request
|
||||
const token = ExtractJwt.fromAuthHeaderAsBearerToken()(request.req);
|
||||
|
||||
// If there is no token or flexible backend is disabled, return an empty schema
|
||||
if (!token || !environmentService.isFlexibleBackendEnabled()) {
|
||||
// If there is no token return an empty schema
|
||||
if (!token) {
|
||||
return new GraphQLSchema({});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user