Forgot to fix single scrapes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2022-07-17 20:35:34 -04:00
parent b5c4146d4d
commit 3fbaec1fb6

View File

@@ -114,7 +114,7 @@ namespace WebNovelPortalAPI.Controllers
try try
{ {
var novel = await ScrapeNovel(request.NovelUrl); var novel = await ScrapeNovel(request.NovelUrl);
var dbNovel = await _novelRepository.Upsert(novel, false); var dbNovel = await _novelRepository.Upsert(novel, true);
var user = await GetUser(); var user = await GetUser();
await _userRepository.AssignNovelsToUser(user, new List<Novel> {novel}); await _userRepository.AssignNovelsToUser(user, new List<Novel> {novel});
return Ok(dbNovel); return Ok(dbNovel);