#409 fixes
This commit is contained in:
parent
1f20c2bf1a
commit
621bc118cb
@ -271,9 +271,7 @@ namespace RMuseum.Controllers
|
||||
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
|
||||
public IActionResult StartImportingKnownSourceAsync([FromBody]string srcUrl)
|
||||
{
|
||||
var res = _pdfService.StartImportingKnownSourceAsync(srcUrl);
|
||||
if (!string.IsNullOrEmpty(res.ExceptionString))
|
||||
return BadRequest(res.ExceptionString);
|
||||
_pdfService.StartImportingKnownSourceAsync(srcUrl);
|
||||
return Ok();
|
||||
}
|
||||
|
||||
|
||||
@ -18611,7 +18611,7 @@
|
||||
<param name="srcUrl"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.PDFLibraryService.StartImportingKnownSourceAsync(RMuseum.DbContext.RMuseumDbContext,System.String)">
|
||||
<member name="M:RMuseum.Services.Implementation.PDFLibraryService.ImportfFromKnownSourceAsync(RMuseum.DbContext.RMuseumDbContext,System.String)">
|
||||
<summary>
|
||||
import from known sources
|
||||
</summary>
|
||||
|
||||
@ -19,7 +19,7 @@ namespace RMuseum.Services
|
||||
/// </summary>
|
||||
/// <param name="srcUrl"></param>
|
||||
/// <returns></returns>
|
||||
RServiceResult<bool> StartImportingKnownSourceAsync(string srcUrl);
|
||||
void StartImportingKnownSourceAsync(string srcUrl);
|
||||
/// <summary>
|
||||
/// get pdf book by id
|
||||
/// </summary>
|
||||
|
||||
@ -31,7 +31,7 @@ namespace RMuseum.Services.Implementation
|
||||
/// </summary>
|
||||
/// <param name="srcUrl"></param>
|
||||
/// <returns></returns>
|
||||
public RServiceResult<bool> StartImportingKnownSourceAsync(string srcUrl)
|
||||
public void StartImportingKnownSourceAsync(string srcUrl)
|
||||
{
|
||||
_backgroundTaskQueue.QueueBackgroundWorkItem
|
||||
(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user