mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 21:16:49 +00:00
fix(api): order shards by ID
This commit is contained in:
parent
bd3d9bc0d8
commit
d948d445ec
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ public class PrivateController: PKControllerBase
|
|||
{
|
||||
var db = _redis.Connection.GetDatabase();
|
||||
var redisInfo = await db.HashGetAllAsync("pluralkit:shardstatus");
|
||||
var shards = redisInfo.Select(x => Proto.Unmarshal<ShardState>(x.Value));
|
||||
var shards = redisInfo.Select(x => Proto.Unmarshal<ShardState>(x.Value)).OrderBy(x => x.ShardId);
|
||||
|
||||
var stats = await _repo.GetStats();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue