Skip to content

Commit 6da7a07

Browse files
committed
explain ES queries
1 parent b7f1465 commit 6da7a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projects/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ const retrieveProjects = (req, criteria, sort, ffields) => {
257257
return new Promise((accept, reject) => {
258258
const es = util.getElasticSearchClient();
259259
es.search(searchCriteria).then((docs) => {
260-
const rows = _.map(docs.hits.hits, single => single._source); // eslint-disable-line no-underscore-dangle
260+
const rows = docs; // eslint-disable-line no-underscore-dangle
261261
accept({ rows, count: docs.hits.total });
262262
}).catch(reject);
263263
});

0 commit comments

Comments
 (0)