feat: re-enable message count stats updater

This commit is contained in:
spiral 2022-06-10 18:48:00 -04:00
parent 97d8863481
commit 58a9206d5c
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -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<Counts> GetStats()