Skip to content

Commit

Permalink
Removed underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed May 29, 2020
1 parent 23e305a commit 2e64001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/keystone/lib/providers/listCRUD.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { GraphQLJSON } = require('graphql-type-json');
const { flatten, objMerge, unique } = require('@keystonejs/utils');

const { _getListCRUDTypes } = require('./listCRUDTypes');
const { getListCRUDTypes } = require('./listCRUDTypes');

class ListCRUDProvider {
constructor({ metaPrefix = 'ks' } = {}) {
Expand All @@ -15,7 +15,7 @@ class ListCRUDProvider {
getTypes({ schemaName }) {
return unique([
...flatten(this.lists.map(list => list.getGqlTypes({ schemaName }))),
..._getListCRUDTypes(this.gqlNames),
...getListCRUDTypes(this.gqlNames),
]);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/keystone/lib/providers/listCRUDTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Helper function to get the static GraphQL Type definitions for the CRUD provider.
* @param {Object} gqlNames CRUD provider GraphQL type names
*/
const _getListCRUDTypes = ({ listsMetaInput }) => [
const getListCRUDTypes = ({ listsMetaInput }) => [
`
"""
NOTE: Can be JSON, or a Boolean/Int/String
Expand Down Expand Up @@ -199,4 +199,4 @@ const _getListCRUDTypes = ({ listsMetaInput }) => [
`,
];

module.exports = { _getListCRUDTypes };
module.exports = { getListCRUDTypes };

0 comments on commit 2e64001

Please sign in to comment.