diff --git a/src/Inshapardaz.Api/appsettings.json b/src/Inshapardaz.Api/appsettings.json index 9c381c94..642ad89c 100644 --- a/src/Inshapardaz.Api/appsettings.json +++ b/src/Inshapardaz.Api/appsettings.json @@ -29,7 +29,7 @@ }, "Database": { "DatabaseConnectionType": "MySql", - "ConnectionString": "Server=127.0.0.1;Database=nawishta;Uid=root;Pwd=Passw0rd;SslMode=none;" + "ConnectionString": "Server=localhost;Database=nawishta;Uid=root;Pwd=Passw0rd;SslMode=none;" }, "Storage": { "FileStoreType": "FileSystem" diff --git a/src/Inshapardaz.Domain/Inshapardaz.Domain.csproj b/src/Inshapardaz.Domain/Inshapardaz.Domain.csproj index 97c6ef1d..ba02dbc5 100644 --- a/src/Inshapardaz.Domain/Inshapardaz.Domain.csproj +++ b/src/Inshapardaz.Domain/Inshapardaz.Domain.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/Inshapardaz.Domain/Ports/Command/Tools/DownloadChugtaiBookRequest.cs b/src/Inshapardaz.Domain/Ports/Command/Tools/DownloadChugtaiBookRequest.cs index 0be9e19c..87e8a840 100644 --- a/src/Inshapardaz.Domain/Ports/Command/Tools/DownloadChugtaiBookRequest.cs +++ b/src/Inshapardaz.Domain/Ports/Command/Tools/DownloadChugtaiBookRequest.cs @@ -80,7 +80,7 @@ public DownloadChugtaiBookRequestHandler( if (book != null) { var bookContents = await _bookRepository.GetBookContents(_settings.DefaultLibraryId, book.Id, cancellationToken); - if (command.CreatePdf) + if (_saveBook && command.CreatePdf) { if (bookContents.Any(c => c.MimeType == MimeTypes.Pdf)) {