Fix Add tenant id property to user
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user