Fix Graphql filter selection (#4882)

- fix fall through in switch statement
- remove duplicate case
This commit is contained in:
Jakob
2021-04-07 17:25:47 +02:00
committed by GitHub
parent a5564ce4d1
commit 239e12959d

View File

@@ -495,7 +495,6 @@ export class GraphQLService {
const graphqlType = getGraphQLType(field.type);
let filterOperatorType: InputTypeComposer;
switch (graphqlType) {
case GraphQLBoolean:
filterOperatorType = BooleanFilterOperators;
@@ -503,6 +502,7 @@ export class GraphQLService {
case GraphQLInt:
case GraphQLFloat:
filterOperatorType = NumberFilterOperators;
break;
default:
filterOperatorType = StringFilterOperators;
}
@@ -1035,8 +1035,6 @@ export class GraphQLService {
return new FilesService(opts);
case 'directus_folders':
return new FoldersService(opts);
case 'directus_folders':
return new FoldersService(opts);
case 'directus_permissions':
return new PermissionsService(opts);
case 'directus_presets':