[backend/database] Increment user note counter on local create as well

This commit is contained in:
Laura Hausmann 2024-02-09 15:02:09 +01:00
parent d566875f54
commit 0a2b8f53eb
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -49,6 +49,8 @@ public class NoteService(
UserHost = null,
Visibility = visibility
};
user.NotesCount++;
await db.AddAsync(note);
await db.SaveChangesAsync();