fix: graphql and endpoint type issues
This commit is contained in:
@@ -23,12 +23,9 @@ import docAccessRequestHandler from './requestHandlers/docAccess';
|
||||
import deleteByID from './requestHandlers/deleteByID';
|
||||
|
||||
const buildEndpoints = (collection: SanitizedCollectionConfig): Endpoint[] => {
|
||||
if (!collection.endpoints) return [];
|
||||
const endpoints = [...collection.endpoints];
|
||||
|
||||
if (endpoints === false) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (collection.auth) {
|
||||
if (!collection.auth.disableLocalStrategy) {
|
||||
if (collection.auth.verify) {
|
||||
|
||||
@@ -8,12 +8,9 @@ import findOne from './requestHandlers/findOne';
|
||||
import docAccessRequestHandler from './requestHandlers/docAccess';
|
||||
|
||||
const buildEndpoints = (global: SanitizedGlobalConfig): Endpoint[] => {
|
||||
if (!global.endpoints) return [];
|
||||
const endpoints = [...global.endpoints];
|
||||
|
||||
if (endpoints === false) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (global.versions) {
|
||||
endpoints.push(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user