feat: add read last read chapter shortcut (#7230)

Supersedes #6861

Co-authored-by: Pierre-Monier <65488471+Pierre-Monier@users.noreply.github.com>

Co-authored-by: Pierre-Monier <65488471+Pierre-Monier@users.noreply.github.com>
This commit is contained in:
Andreas
2022-06-01 04:55:58 +02:00
committed by GitHub
parent 11c61d42dc
commit 4560033e66
9 changed files with 61 additions and 9 deletions

View File

@@ -46,3 +46,18 @@ AND maxReadAtChapterId = historyView.chapterId
AND lower(historyView.title) LIKE ('%' || :query || '%')
ORDER BY readAt DESC
LIMIT :limit OFFSET :offset;
getLatestHistory:
SELECT
id,
mangaId,
chapterId,
title,
thumbnailUrl,
chapterNumber,
readAt,
readDuration
FROM historyView
WHERE historyView.readAt > 0
ORDER BY readAt DESC
LIMIT 1;