Merge pull request #1387 from strongloop/ref/inclusion-docs

include: remove JSDoc refs to recursive calls
This commit is contained in:
Kevin Delisle 2017-05-24 19:41:06 -04:00 committed by GitHub
commit 3630bb9ae4
1 changed files with 3 additions and 6 deletions

View File

@ -417,9 +417,8 @@ Inclusion.include = function(objects, include, options, cb) {
throughFilter.where[polymorphic.discriminator] = throughFilter.where[polymorphic.discriminator] =
relation.modelFrom.definition.name; 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, findWithForeignKeysByPage(relation.modelThrough, throughFilter,
relation.keyTo, 0, options, throughFetchHandler); relation.keyTo, 0, options, throughFetchHandler);
@ -464,9 +463,7 @@ Inclusion.include = function(objects, include, options, cb) {
fields[modelToIdName] = true; 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, findWithForeignKeysByPage(relation.modelTo, filter,
modelToIdName, 0, options, targetsFetchHandler); modelToIdName, 0, options, targetsFetchHandler);