Stable server

was added removing messages
many fixes bugs and moving to result pattern from throwing exceptions
This commit is contained in:
Artemy
2026-08-22 19:28:42 +07:00
parent 27fdcf85da
commit 3ec61fa2c0
36 changed files with 452 additions and 278 deletions
@@ -31,7 +31,6 @@ public class AuthService : IAccountService
public async Task<Result<User, Error>> RegistrationAsync(string name, string password, Invitation invitation)
{
var validationResult = _usernameValidator.Validate(name);
if (validationResult.IsFailure)
{
@@ -63,8 +62,8 @@ public class AuthService : IAccountService
await _context.Users.AddAsync(user);
await SetRoleAsync(user, invitation);
// TODO: inv.participantCount -= 1; db.save();
invitation.Participants += 1;
await _context.SaveChangesAsync();