Skip to content

Commit b5d8c61

Browse files
committed
Fixed bug with book page status query
1 parent 5f354ed commit b5d8c61

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Adapters/Database/MySql/Repositories/Library/BookPageRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ LIMIT @PageSize
215215
FROM BookPage p
216216
INNER JOIN Book b ON b.Id = p.BookId
217217
WHERE b.LibraryId = @LibraryId AND p.BookId = @BookId
218-
AND (@Status = -1 OR p.Status = @Status )
218+
AND (@Status = 0 OR p.Status = @Status )
219219
AND (
220220
( @AssignmentFilter = 0 ) OR
221221
( @AssignmentFilter = 1 AND p.WriterAccountId IS NOT NULL) OR

src/Inshapardaz.Domain/Ports/Command/Library/Book/Page/BookPageOcrRequest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ public BookPageOcrRequestHandler(IAmACommandProcessor commandProcessor,
6262
var updateBookPageRequest = new UpdateBookPageRequest(command.LibraryId, bookPage.BookId, _userHelper.AccountId.Value, bookPage.SequenceNumber, bookPage);
6363
await _commandProcessor.SendAsync(updateBookPageRequest, cancellationToken: cancellationToken);
6464

65-
//await _bookPageRepository.UpdatePage(command.LibraryId, bookPage.BookId, bookPage.SequenceNumber, text, bookPage.ImageId.Value, bookPage.Status, bookPage.ChapterId, cancellationToken);
66-
6765
return await base.HandleAsync(command, cancellationToken);
6866
}
6967
}

0 commit comments

Comments
 (0)