mirror of
https://github.com/gotson/komga.git
synced 2026-01-08 08:55:01 +01:00
test: fix tests following last commit
This commit is contained in:
parent
bde858f58e
commit
0384dcd99d
2 changed files with 18 additions and 14 deletions
|
|
@ -68,13 +68,15 @@ class BookDao(
|
|||
// insert urls in a temporary table, else the select size can exceed the statement limit
|
||||
dsl.deleteFrom(u).execute()
|
||||
|
||||
dsl.batch(
|
||||
dsl.insertInto(u, u.URL).values(null as String?)
|
||||
).also { step ->
|
||||
urls.forEach {
|
||||
step.bind(it.toString())
|
||||
}
|
||||
}.execute()
|
||||
if (urls.isNotEmpty()) {
|
||||
dsl.batch(
|
||||
dsl.insertInto(u, u.URL).values(null as String?)
|
||||
).also { step ->
|
||||
urls.forEach {
|
||||
step.bind(it.toString())
|
||||
}
|
||||
}.execute()
|
||||
}
|
||||
|
||||
return dsl.selectFrom(b)
|
||||
.where(b.LIBRARY_ID.eq(libraryId))
|
||||
|
|
|
|||
|
|
@ -46,13 +46,15 @@ class SeriesDao(
|
|||
// insert urls in a temporary table, else the select size can exceed the statement limit
|
||||
dsl.deleteFrom(u).execute()
|
||||
|
||||
dsl.batch(
|
||||
dsl.insertInto(u, u.URL).values(null as String?)
|
||||
).also { step ->
|
||||
urls.forEach {
|
||||
step.bind(it.toString())
|
||||
}
|
||||
}.execute()
|
||||
if (urls.isNotEmpty()) {
|
||||
dsl.batch(
|
||||
dsl.insertInto(u, u.URL).values(null as String?)
|
||||
).also { step ->
|
||||
urls.forEach {
|
||||
step.bind(it.toString())
|
||||
}
|
||||
}.execute()
|
||||
}
|
||||
|
||||
return dsl.selectFrom(s)
|
||||
.where(s.LIBRARY_ID.eq(libraryId))
|
||||
|
|
|
|||
Loading…
Reference in a new issue