This commit is contained in:
parent
de441b698c
commit
be5f0ab780
@ -326,7 +326,6 @@ export class ScoreService {
|
|||||||
const date: Date = daysAgo == -1 ? new Date(0) : getDaysAgoDate(daysAgo);
|
const date: Date = daysAgo == -1 ? new Date(0) : getDaysAgoDate(daysAgo);
|
||||||
const foundScores = await ScoreSaberScoreModel.aggregate([
|
const foundScores = await ScoreSaberScoreModel.aggregate([
|
||||||
{ $match: { timestamp: { $gte: date } } },
|
{ $match: { timestamp: { $gte: date } } },
|
||||||
{ $sort: { timestamp: -1 } },
|
|
||||||
{
|
{
|
||||||
$group: {
|
$group: {
|
||||||
_id: { leaderboardId: "$leaderboardId", playerId: "$playerId" },
|
_id: { leaderboardId: "$leaderboardId", playerId: "$playerId" },
|
||||||
|
Reference in New Issue
Block a user