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
+2 -2
View File
@@ -21,11 +21,11 @@ public class InviteController : ControllerBase
[Authorize]
[HttpGet("{code}")]
public IActionResult JoinGroup(string code)
public async Task<IActionResult> JoinGroup(string code)
{
try
{
_groupService.AddUserToGroupByInvitationAsync(_currentUser.GetCurrentUserId(), code);
var groupRes = await _groupService.AddUserToGroupByInvitationAsync(_currentUser.GetCurrentUserId(), code);
var group = _groupService.GetGroupByInviteCode(code);