Skip to content

Commit

Permalink
Fixing minor bug breaking the search functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
asm0dey committed Apr 14, 2024
1 parent ab3f087 commit 749127e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
}

group = "io.github.asm0dey"
version = "2.0.0"
version = "2.0.1"
application {
mainClass.set("io.github.asm0dey.ApplicationKt")

Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ kotlin = "1.9.23"
## ⬆ = "2.0.0-RC1"

ktor = "2.3.10"
##⬆ = "2.3.10"
##⬆ = "3.0.0-beta-1"

kodein-di = "7.21.2"
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/github/asm0dey/plugins/di.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fun Application.ioc() {
val settings: Settings = Settings()
.withRenderImplicitJoinType(INNER_JOIN)
.withRenderImplicitJoinToManyType(RenderImplicitJoinType.LEFT_JOIN)
DSL.using(instance<DataSource>(), SQLDialect.POSTGRES, settings).apply {
DSL.using(instance<DataSource>(), SQLDialect.SQLITE, settings).apply {
configuration().set(DefaultExecuteListenerProvider(CustomLogger()))
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/github/asm0dey/repository/Repository.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Repository(val create: DSLContext) {
collect(Records.intoList())

private val bookById = run {
val bookAlias = io.github.asm0dey.opdsko.jooq.tables.Book("b")
val bookAlias = BOOK.`as`("b")
multiset(selectFrom(bookAlias).where(bookAlias.ID.eq(BOOK.ID)))
.`as`("book")
.convertFrom { it.into(Book::class.java) }
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ktor {
}
}
db {
url = "jdbc:postgresql://localhost:5432/opds"
url = "jdbc:sqlite:opds.db"
url = ${?DB_URL}
username = "pg"
username = ${?DB_USER}
Expand Down

0 comments on commit 749127e

Please sign in to comment.