1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-01 08:18:14 +09:00
This commit is contained in:
syuilo 2023-10-09 21:52:31 +09:00
parent fc777be7bc
commit 8ab3640291

View File

@ -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),
);
});
}