diff options
author | crupest <crupest@outlook.com> | 2021-04-27 19:29:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-27 19:29:20 +0800 |
commit | a6150c487e7a0eb3fb1d9874d2fa7de61cdbfd30 (patch) | |
tree | 65ad2e897051d36ca49896e0df66841df4bffd6f /BackEnd/Timeline/Services/Api/HighlightTimelineService.cs | |
parent | cb3d8d0997679d2b9a961ec92b6555af4c4ef53f (diff) | |
download | timeline-a6150c487e7a0eb3fb1d9874d2fa7de61cdbfd30.tar.gz timeline-a6150c487e7a0eb3fb1d9874d2fa7de61cdbfd30.tar.bz2 timeline-a6150c487e7a0eb3fb1d9874d2fa7de61cdbfd30.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/Api/HighlightTimelineService.cs')
-rw-r--r-- | BackEnd/Timeline/Services/Api/HighlightTimelineService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Services/Api/HighlightTimelineService.cs b/BackEnd/Timeline/Services/Api/HighlightTimelineService.cs index 9ef8ea84..419aa68d 100644 --- a/BackEnd/Timeline/Services/Api/HighlightTimelineService.cs +++ b/BackEnd/Timeline/Services/Api/HighlightTimelineService.cs @@ -95,7 +95,7 @@ namespace Timeline.Services.Api if (!await _timelineService.CheckExistence(timelineId))
throw new TimelineNotExistException(timelineId);
- if (operatorId.HasValue && !await _userService.CheckUserExistence(operatorId.Value))
+ if (operatorId.HasValue && !await _userService.CheckUserExistenceAsync(operatorId.Value))
{
throw new UserNotExistException(null, operatorId.Value, "User with given operator id does not exist.", null);
}
@@ -121,7 +121,7 @@ namespace Timeline.Services.Api if (!await _timelineService.CheckExistence(timelineId))
throw new TimelineNotExistException(timelineId);
- if (operatorId.HasValue && !await _userService.CheckUserExistence(operatorId.Value))
+ if (operatorId.HasValue && !await _userService.CheckUserExistenceAsync(operatorId.Value))
{
throw new UserNotExistException(null, operatorId.Value, "User with given operator id does not exist.", null);
}
|