mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 23:53:09 +02:00
fix of 0bb0c32908
This commit is contained in:
parent
fc777be7bc
commit
8ab3640291
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ export class RedisTimelineService {
|
||||||
.then(ids => ids.filter(id => id > sinceId).sort((a, b) => a < b ? -1 : 1));
|
.then(ids => ids.filter(id => id > sinceId).sort((a, b) => a < b ? -1 : 1));
|
||||||
} else {
|
} else {
|
||||||
return this.redisForTimelines.lrange('list:' + name, 0, -1)
|
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)
|
? ids.filter(id => id < untilId).sort((a, b) => a > b ? -1 : 1)
|
||||||
: sinceId
|
: sinceId
|
||||||
? ids.filter(id => id > sinceId).sort((a, b) => a < b ? -1 : 1)
|
? 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),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue