diff --git a/ghost/api-framework/lib/pipeline.js b/ghost/api-framework/lib/pipeline.js index a2dfa48440..79dc5b424a 100644 --- a/ghost/api-framework/lib/pipeline.js +++ b/ghost/api-framework/lib/pipeline.js @@ -186,7 +186,7 @@ const pipeline = (apiController, apiUtils, apiType) => { return controllerMap.get(apiController); } - const keys = Object.keys(apiController); + const keys = Object.keys(apiController).filter(key => key !== 'docName'); const docName = apiController.docName; // CASE: api controllers are objects with configuration.