[backend/core] Fix typo

This commit is contained in:
Laura Hausmann 2024-05-30 13:35:31 +02:00
parent 6fdc8b73f7
commit 117443b802
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -281,9 +281,9 @@ public class NoteService(
{
await bgDb.Notes.Where(p => p.Id == note.Id)
.ExecuteUpdateAsync(p => p.SetProperty(i => i.RepliesCount,
i => db.Notes.Count(n => n.ReplyId == i.Id))
i => bgDb.Notes.Count(n => n.ReplyId == i.Id))
.SetProperty(i => i.RenoteCount,
i => db.Notes.Count(n => n.RenoteId == i.Id &&
i => bgDb.Notes.Count(n => n.RenoteId == i.Id &&
n.IsPureRenote)));
}
});