fix shard fetch order

This commit is contained in:
spiral 2021-08-03 18:57:10 -04:00
parent 25f96dd920
commit 34a1470d1f
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -10,7 +10,7 @@ namespace PluralKit.Core
public partial class ModelRepository
{
public Task<IEnumerable<PKShardInfo>> GetShards(IPKConnection conn) =>
conn.QueryAsync<PKShardInfo>("select * from shards");
conn.QueryAsync<PKShardInfo>("select * from shards order by id");
public Task SetShardStatus(IPKConnection conn, int shard, PKShardInfo.ShardStatus status) =>
conn.ExecuteAsync(