mirror of
https://github.com/gotson/komga.git
synced 2026-04-20 22:10:52 +02:00
fix(api): handle more sort keys for page hashes
This commit is contained in:
parent
5962d47eff
commit
f611ca0742
1 changed files with 4 additions and 0 deletions
|
|
@ -42,14 +42,18 @@ class PageHashDao(
|
|||
"deleteCount" to ph.DELETE_COUNT,
|
||||
"deleteSize" to ph.SIZE * ph.DELETE_COUNT,
|
||||
"fileSize" to ph.SIZE,
|
||||
"size" to ph.SIZE,
|
||||
"createdDate" to ph.CREATED_DATE,
|
||||
"created" to ph.CREATED_DATE,
|
||||
"lastModifiedDate" to ph.LAST_MODIFIED_DATE,
|
||||
"lastModified" to ph.LAST_MODIFIED_DATE,
|
||||
)
|
||||
|
||||
private val sortsUnknown =
|
||||
mapOf(
|
||||
"hash" to p.FILE_HASH,
|
||||
"fileSize" to p.FILE_SIZE,
|
||||
"size" to p.FILE_SIZE,
|
||||
"matchCount" to DSL.field("count"),
|
||||
"totalSize" to DSL.field("totalSize"),
|
||||
"url" to b.URL,
|
||||
|
|
|
|||
Loading…
Reference in a new issue