Skip to content

Commit

Permalink
feat(apis): limit data to 100 last ✨
Browse files Browse the repository at this point in the history
close #1
  • Loading branch information
PierreBrisorgueil committed Apr 21, 2020
1 parent f3be4a2 commit a8307ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/apis/repositories/apis.repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ exports.listApi = (collection) => {
} catch (error) {
model = mongoose.model(collection, _schema);
}
return model.find().sort('-updatedAt').exec();
return model.find().sort('-updatedAt').limit(100).exec();
};


Expand Down

0 comments on commit a8307ef

Please sign in to comment.