diff options
author | crupest <crupest@outlook.com> | 2021-04-28 17:16:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-28 17:16:45 +0800 |
commit | ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef (patch) | |
tree | d556eca60c5edd6dea506546f97dabb7a34a62e9 /BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs | |
parent | db6629940e294b44d678e776ccce769a8ac715de (diff) | |
download | timeline-ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef.tar.gz timeline-ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef.tar.bz2 timeline-ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs')
-rw-r--r-- | BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs b/BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs index cabc1db2..37b55199 100644 --- a/BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs +++ b/BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs @@ -96,7 +96,7 @@ namespace Timeline.Services.Api if (!await _userService.CheckUserExistenceAsync(userId))
throw new UserNotExistException(userId);
- if (!await _timelineService.CheckExistence(timelineId))
+ if (!await _timelineService.CheckTimelineExistenceAsync(timelineId))
throw new TimelineNotExistException(timelineId);
if (await _database.BookmarkTimelines.AnyAsync(t => t.TimelineId == timelineId && t.UserId == userId))
@@ -128,7 +128,7 @@ namespace Timeline.Services.Api if (checkUserExistence && !await _userService.CheckUserExistenceAsync(userId))
throw new UserNotExistException(userId);
- if (checkTimelineExistence && !await _timelineService.CheckExistence(timelineId))
+ if (checkTimelineExistence && !await _timelineService.CheckTimelineExistenceAsync(timelineId))
throw new TimelineNotExistException(timelineId);
return await _database.BookmarkTimelines.AnyAsync(b => b.TimelineId == timelineId && b.UserId == userId);
@@ -139,7 +139,7 @@ namespace Timeline.Services.Api if (!await _userService.CheckUserExistenceAsync(userId))
throw new UserNotExistException(userId);
- if (!await _timelineService.CheckExistence(timelineId))
+ if (!await _timelineService.CheckTimelineExistenceAsync(timelineId))
throw new TimelineNotExistException(timelineId);
var entity = await _database.BookmarkTimelines.SingleOrDefaultAsync(t => t.TimelineId == timelineId && t.UserId == userId);
@@ -181,7 +181,7 @@ namespace Timeline.Services.Api if (!await _userService.CheckUserExistenceAsync(userId))
throw new UserNotExistException(userId);
- if (!await _timelineService.CheckExistence(timelineId))
+ if (!await _timelineService.CheckTimelineExistenceAsync(timelineId))
throw new TimelineNotExistException(timelineId);
var entity = await _database.BookmarkTimelines.SingleOrDefaultAsync(t => t.UserId == userId && t.TimelineId == timelineId);
|