1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 21:18:13 -05:00

changes from main

This commit is contained in:
jrmccannon 2025-03-07 12:35:35 -06:00
parent 88923b5e6e
commit 9378acbd0d
No known key found for this signature in database
GPG Key ID: CF03F3DB01CE96A6
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ public class InviteOrganizationUsersCommand(IEventService eventService,
return new Success<ScimInviteOrganizationUsersResponse>(new ScimInviteOrganizationUsersResponse return new Success<ScimInviteOrganizationUsersResponse>(new ScimInviteOrganizationUsersResponse
{ {
InvitedUser = result.Value.FirstOrDefault() InvitedUser = user
}); });
default: default:

View File

@ -32,10 +32,10 @@ public abstract class CommandResult<T> { }
public class Success<T>(T value) : CommandResult<T> public class Success<T>(T value) : CommandResult<T>
{ {
public T? Value { get; } = value; public T Value { get; } = value;
} }
public class Failure<T>(IEnumerable<string> errorMessage) : CommandResult<T> public class Failure<T>(IEnumerable<string> errorMessages) : CommandResult<T>
{ {
public List<string> ErrorMessages { get; } = []; public List<string> ErrorMessages { get; } = [];