Skip to content

Commit

Permalink
Merge pull request #2202 from Inist-CNRS/fix-lost-columns
Browse files Browse the repository at this point in the history
Excerpts are considered representative of the entire dataset
  • Loading branch information
touv authored Nov 5, 2024
2 parents 04aabfe + 815b253 commit e52f502
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/api/models/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@ export default (db) => {
};

collection.getColumns = async () => {
const result = await collection
.find({})
.limit(30) // The first 30 documents are considered representative of the entire dataset.
.toArray();
const result = await collection.getExcerpt();
const columns = [];
result.forEach((item) => {
Object.keys(item).forEach((key) => {
Expand Down

0 comments on commit e52f502

Please sign in to comment.