[backend/database] Increment user note counter on local create as well
This commit is contained in:
parent
d566875f54
commit
0a2b8f53eb
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ public class NoteService(
|
|||
UserHost = null,
|
||||
Visibility = visibility
|
||||
};
|
||||
|
||||
user.NotesCount++;
|
||||
await db.AddAsync(note);
|
||||
await db.SaveChangesAsync();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue