From a8307ef65b79c7304b8d26b75031f9b2f911d998 Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Tue, 21 Apr 2020 12:14:07 +0200 Subject: [PATCH] =?UTF-8?q?feat(apis):=20limit=20data=20to=20100=20last=20?= =?UTF-8?q?=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #1 --- modules/apis/repositories/apis.repository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apis/repositories/apis.repository.js b/modules/apis/repositories/apis.repository.js index cf74c6894..795dd8336 100644 --- a/modules/apis/repositories/apis.repository.js +++ b/modules/apis/repositories/apis.repository.js @@ -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(); };