From 34a1470d1f1ec38d21d1b95f48dfac96b97083fd Mon Sep 17 00:00:00 2001 From: spiral Date: Tue, 3 Aug 2021 18:57:10 -0400 Subject: [PATCH] fix shard fetch order --- PluralKit.Core/Database/Repository/ModelRepository.Shards.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Core/Database/Repository/ModelRepository.Shards.cs b/PluralKit.Core/Database/Repository/ModelRepository.Shards.cs index 758d8d9c..832bb4aa 100644 --- a/PluralKit.Core/Database/Repository/ModelRepository.Shards.cs +++ b/PluralKit.Core/Database/Repository/ModelRepository.Shards.cs @@ -10,7 +10,7 @@ namespace PluralKit.Core public partial class ModelRepository { public Task> GetShards(IPKConnection conn) => - conn.QueryAsync("select * from shards"); + conn.QueryAsync("select * from shards order by id"); public Task SetShardStatus(IPKConnection conn, int shard, PKShardInfo.ShardStatus status) => conn.ExecuteAsync(