Skip to content

Commit

Permalink
utest fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelM3 committed Jul 5, 2023
1 parent 7c6bcc8 commit d939e62
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/models/entitiesStore.js
Expand Up @@ -89,10 +89,12 @@ function findSilentEntitiesByAPIWithPagination(connection, filter, alterFunc, ca
// response.limit contains the used page size
// response.results is an array with the retrieved entities
// response.offset contains the offset used in the request
response.results.forEach((entity) => {
logger.debug(context, 'silent entity %j', entity);
alterFunc(entity);
});
if (response.results) {
response.results.forEach((entity) => {
logger.debug(context, 'silent entity %j', entity);
alterFunc(entity);
});
}
logger.debug(context, 'findSilentEntities %s', myutils.firstChars(response.results));
// Check if there are more entities to retrieve
if (response.count > filter.limit + filter.offset) {
Expand Down

0 comments on commit d939e62

Please sign in to comment.