Skip to content

Commit

Permalink
fix of 0bb0c32
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo authored and anatawa12 committed Oct 10, 2023
1 parent d5a04b0 commit 23ec972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/core/RedisTimelineService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class RedisTimelineService {
.then(ids => ids.filter(id => id > sinceId).sort((a, b) => a < b ? -1 : 1));
} else {
return this.redisForTimelines.lrange('list:' + name, 0, -1)
.then(ids => ids.sort((a, b) => a < b ? -1 : 1));
.then(ids => ids.sort((a, b) => a > b ? -1 : 1));
}
}

Expand All @@ -73,7 +73,7 @@ export class RedisTimelineService {
? ids.filter(id => id < untilId).sort((a, b) => a > b ? -1 : 1)
: sinceId
? ids.filter(id => id > sinceId).sort((a, b) => a < b ? -1 : 1)
: ids.sort((a, b) => a < b ? -1 : 1),
: ids.sort((a, b) => a > b ? -1 : 1),
);
});
}
Expand Down

0 comments on commit 23ec972

Please sign in to comment.