From 1b625228b933b5473eaba7bc3b0fd991f5ca5447 Mon Sep 17 00:00:00 2001 From: Kevin Delisle Date: Wed, 24 May 2017 17:10:45 -0400 Subject: [PATCH] include: remove JSDoc refs to recursive calls --- lib/include.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/include.js b/lib/include.js index 15b3bb34..04282738 100644 --- a/lib/include.js +++ b/lib/include.js @@ -417,9 +417,8 @@ Inclusion.include = function(objects, include, options, cb) { throughFilter.where[polymorphic.discriminator] = relation.modelFrom.definition.name; } - /** - * 1st DB Call of 2 step process. Get through model objects first - */ + + // 1st DB Call of 2-step process. Get through model objects first findWithForeignKeysByPage(relation.modelThrough, throughFilter, relation.keyTo, 0, options, throughFetchHandler); @@ -464,9 +463,7 @@ Inclusion.include = function(objects, include, options, cb) { fields[modelToIdName] = true; } - /** - * 2nd DB Call of 2 step process. Get modelTo (target) objects - */ + // 2nd DB Call of 2-step process. Get modelTo (target) objects findWithForeignKeysByPage(relation.modelTo, filter, modelToIdName, 0, options, targetsFetchHandler);