From 58a9206d5c7fb784191b4aceb692eb4b82be229a Mon Sep 17 00:00:00 2001 From: spiral Date: Fri, 10 Jun 2022 18:48:00 -0400 Subject: [PATCH] feat: re-enable message count stats updater --- PluralKit.Core/Database/Repository/ModelRepository.Stats.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluralKit.Core/Database/Repository/ModelRepository.Stats.cs b/PluralKit.Core/Database/Repository/ModelRepository.Stats.cs index 6c08781a..306e577d 100644 --- a/PluralKit.Core/Database/Repository/ModelRepository.Stats.cs +++ b/PluralKit.Core/Database/Repository/ModelRepository.Stats.cs @@ -14,8 +14,8 @@ public partial class ModelRepository conn.ExecuteAsync("update info set group_count = (select count(*) from groups)")); await _db.Execute(conn => conn.ExecuteAsync("update info set switch_count = (select count(*) from switches)")); - // await _db.Execute(conn => - // conn.ExecuteAsync("update info set message_count = (select count(*) from messages)")); + await _db.Execute(conn => + conn.ExecuteAsync("update info set message_count = (select count(*) from messages)")); } public Task GetStats()