fix(api): order shards by ID
This commit is contained in:
parent
bd3d9bc0d8
commit
d948d445ec
@ -28,7 +28,7 @@ public class PrivateController: PKControllerBase
|
|||||||
{
|
{
|
||||||
var db = _redis.Connection.GetDatabase();
|
var db = _redis.Connection.GetDatabase();
|
||||||
var redisInfo = await db.HashGetAllAsync("pluralkit:shardstatus");
|
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();
|
var stats = await _repo.GetStats();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user