diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-09 21:52:31 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-09 21:52:31 +0900 |
| commit | 8ab364029142991b4e71030cdce070650c13a6ea (patch) | |
| tree | 7beac92a436e6152c1c3e67fe995e6337d06b72a /packages/backend/src | |
| parent | 2023.10.0-beta.14 (diff) | |
| download | sharkey-8ab364029142991b4e71030cdce070650c13a6ea.tar.gz sharkey-8ab364029142991b4e71030cdce070650c13a6ea.tar.bz2 sharkey-8ab364029142991b4e71030cdce070650c13a6ea.zip | |
fix of 0bb0c32908
Diffstat (limited to 'packages/backend/src')
| -rw-r--r-- | packages/backend/src/core/RedisTimelineService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/RedisTimelineService.ts b/packages/backend/src/core/RedisTimelineService.ts index 2f110c014e..94541759cc 100644 --- a/packages/backend/src/core/RedisTimelineService.ts +++ b/packages/backend/src/core/RedisTimelineService.ts @@ -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)); } } @@ -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), ); }); } |