Commit 5b3a4c31 authored by Fernando Arias's avatar Fernando Arias

Fix linter errors and update

* Run linters
parent 45c907e1
...@@ -2,12 +2,12 @@ import produce from 'immer'; ...@@ -2,12 +2,12 @@ import produce from 'immer';
import { corpuses } from 'ee_jest/security_configuration/corpus_management/mock_data'; import { corpuses } from 'ee_jest/security_configuration/corpus_management/mock_data';
import { publishPackage } from '~/api/packages_api'; import { publishPackage } from '~/api/packages_api';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import { convertToGraphQLId } from '~/graphql_shared/utils';
import { TYPE_PACKAGES_PACKAGE } from '~/graphql_shared/constants';
import getCorpusesQuery from '../queries/get_corpuses.query.graphql'; import getCorpusesQuery from '../queries/get_corpuses.query.graphql';
import updateProgress from '../mutations/update_progress.mutation.graphql'; import updateProgress from '../mutations/update_progress.mutation.graphql';
import uploadComplete from '../mutations/upload_complete.mutation.graphql'; import uploadComplete from '../mutations/upload_complete.mutation.graphql';
import corpusCreate from '../mutations/corpus_create.mutation.graphql'; import corpusCreate from '../mutations/corpus_create.mutation.graphql';
import { convertToGraphQLId } from '~/graphql_shared/utils';
import { TYPE_PACKAGES_PACKAGE } from '~/graphql_shared/constants';
export default { export default {
Query: { Query: {
...@@ -62,7 +62,12 @@ export default { ...@@ -62,7 +62,12 @@ export default {
client.mutate({ client.mutate({
mutation: corpusCreate, mutation: corpusCreate,
variables: {input:{ fullPath: projectPath, packageId: convertToGraphQLId(TYPE_PACKAGES_PACKAGE, packageId) }}, variables: {
input: {
fullPath: projectPath,
packageId: convertToGraphQLId(TYPE_PACKAGES_PACKAGE, packageId),
},
},
}); });
}, },
deleteCorpus: (_, { name, projectPath }, { cache }) => { deleteCorpus: (_, { name, projectPath }, { cache }) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment