Skip to content

Commit

Permalink
Clean 🧼 🧽
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiKamilla committed Oct 9, 2023
1 parent 52ae447 commit 6602426
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 106 deletions.
1 change: 0 additions & 1 deletion src/routes/proxy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ router.all('/:name/**', async (req, res) => {
$or: [{ name: req.params.name }, { id: req.params.name }],
status: 'active',
}).select('name authType endpoint settings id');

if (!api) {
return res.status(404).send(i18next.t('common.errors.dataNotFound'));
}
Expand Down
2 changes: 0 additions & 2 deletions src/schema/query/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import recordsAggregation from './recordsAggregation.query';
import dashboards from './dashboards.query';
import dashboard from './dashboard.query';
import users from './users.query';
import people from './people.query';
import me from './me.query';
import role from './role.query';
import roles from './roles.query';
Expand Down Expand Up @@ -73,7 +72,6 @@ const Query = new GraphQLObjectType({
steps,
user,
users,
people,
workflow,
workflows,
positionAttributes,
Expand Down
45 changes: 0 additions & 45 deletions src/schema/query/people.query.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/schema/types/people.type.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/utils/files/getRowsFromMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const getRowsFromMeta = (columns: any[], records: any[]): any[] => {
set(row, column.name, Array.isArray(value) ? value.join(',') : value);
break;
}
case 'people':
case 'users': {
let value: any = get(data, column.field);
const choices = column.meta.field.choices || [];
Expand Down
2 changes: 0 additions & 2 deletions src/utils/form/getFieldType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ export const getFieldType = async (question: {
return 'tagbox';
case 'users':
return 'users';
case 'people':
return 'people';
case 'owner':
return 'owner';
case 'geospatial':
Expand Down
1 change: 0 additions & 1 deletion src/utils/form/metadata.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ export const getMetaData = async (
};
break;
}
case 'people':
case 'users': {
fieldMeta.editor = 'select';
fieldMeta.multiSelect = true;
Expand Down
3 changes: 0 additions & 3 deletions src/utils/schema/introspection/getFieldType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ const getFieldType = (
case 'users': {
return GraphQLJSON;
}
case 'people': {
return GraphQLJSON;
}
case 'owner': {
return GraphQLJSON;
}
Expand Down
4 changes: 0 additions & 4 deletions src/utils/schema/resolvers/Meta/getMetaFieldResolver.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import getMetaCheckboxResolver from './getMetaCheckboxResolver';
import getMetaDropdownResolver from './getMetaDropdownResolver';
import getMetaOwnerResolver from './getMetaOwnerResolver';
import getMetaPeopleResolver from './getMetaPeopleResolver';
import getMetaUsersResolver from './getMetaUsersResolver';
import getMetaRadioResolver from './getMetaRadiogroupResolver';
import getMetaTagboxResolver from './getMetaTagboxResolver';
Expand All @@ -26,9 +25,6 @@ const getMetaFieldResolver = (field: any) => {
case 'tagbox': {
return getMetaTagboxResolver(field);
}
case 'people': {
return getMetaPeopleResolver(field);
}
case 'users': {
return getMetaUsersResolver(field);
}
Expand Down
23 changes: 0 additions & 23 deletions src/utils/schema/resolvers/Meta/getMetaPeopleResolver.ts

This file was deleted.

0 comments on commit 6602426

Please sign in to comment.