Fix Add tenant id property to user

This commit is contained in:
2025-08-31 18:01:35 -06:00
parent 95e64b8431
commit 8b0a0c6bc8
3 changed files with 5 additions and 4 deletions

View File

@@ -75,6 +75,8 @@ namespace Core.Thalos.BFF.Api.Controllers
if (string.IsNullOrEmpty(newUser.RoleId)) return BadRequest("Invalid role id");
if (string.IsNullOrEmpty(newUser.TenantId)) return BadRequest("Invalid tenant id");
return await Handle(() => thalosServiceClient.CreateUserService(newUser, cancellationToken)).ConfigureAwait(false);
}
catch (Exception ex)
@@ -170,8 +172,6 @@ namespace Core.Thalos.BFF.Api.Controllers
if (string.IsNullOrEmpty(request.RoleId)) return BadRequest("Invalid role id");
if (!request.Companies.Any()) return BadRequest("The user must contain at least one company");
return await Handle(() => thalosServiceClient.UpdateUserService(request, cancellationToken)).ConfigureAwait(false);
}
catch (Exception ex)