aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs')
-rw-r--r--BackEnd/Timeline/Services/Api/BookmarkTimelineService.cs8
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);