berkansasmaz
5 years ago
No known key found for this signature in database
GPG Key ID: 884D815C3F32BE00
1 changed files with
2 additions and
2 deletions
-
src/EventHub.Application/Events/EventAppService.cs
|
|
@ -439,8 +439,8 @@ namespace EventHub.Events |
|
|
{ |
|
|
{ |
|
|
foreach (var userName in speakerUserNames) |
|
|
foreach (var userName in speakerUserNames) |
|
|
{ |
|
|
{ |
|
|
var user = await _userRepository.FindAsync(x => x.UserName == userName.Trim()); |
|
|
var user = await _userRepository.AnyAsync(x => x.UserName == userName.Trim()); |
|
|
if (user is null) |
|
|
if (!user) |
|
|
{ |
|
|
{ |
|
|
throw new BusinessException(EventHubErrorCodes.UserNotFound) |
|
|
throw new BusinessException(EventHubErrorCodes.UserNotFound) |
|
|
.WithData("UserName", userName); |
|
|
.WithData("UserName", userName); |
|
|
|