From 95ee015b36bbfc41e442efe64998969e8375219a Mon Sep 17 00:00:00 2001 From: dbroqua Date: Tue, 7 Jan 2020 16:29:17 +0100 Subject: [PATCH] Fixed bug (again) --- libs/Statistics.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/Statistics.js b/libs/Statistics.js index dec3d9a..1753414 100644 --- a/libs/Statistics.js +++ b/libs/Statistics.js @@ -72,7 +72,9 @@ class When extends Queries { const artists = [] const songs = [] this.models.Histories - .find(this.filter) + .find({ + createdAt: this.filter.createdAt + }) .sort({ artist: 'desc' })