diff --git a/PluralKit.Core/Database/Repository/ModelRepository.Member.cs b/PluralKit.Core/Database/Repository/ModelRepository.Member.cs index 1b489f07..8a45d0e6 100644 --- a/PluralKit.Core/Database/Repository/ModelRepository.Member.cs +++ b/PluralKit.Core/Database/Repository/ModelRepository.Member.cs @@ -101,7 +101,8 @@ public partial class ModelRepository public async Task UpdateMemberForSentMessage(MemberId id) { var query = new Query("members") - .AsUpdate(new { + .AsUpdate(new + { last_message_timestamp = new UnsafeLiteral("now()"), message_count = new UnsafeLiteral("message_count + 1") })