mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-11 23:04:33 -05:00
Feature/update to exposed v0.57.0 (#1150)
* Update to exposed-migrations v3.5.0 * Update to kotlin-logging v7.0.0 * Update to exposed v0.46.0 * Update to exposed v0.47.0 * Update to exposed v0.55.0 * Update to exposed v0.56.0 * Update to exposed v0.57.0
This commit is contained in:
@@ -4,7 +4,7 @@ import com.expediagroup.graphql.generator.annotations.GraphQLDeprecated
|
||||
import com.expediagroup.graphql.generator.annotations.GraphQLDescription
|
||||
import graphql.execution.DataFetcherResult
|
||||
import org.jetbrains.exposed.sql.and
|
||||
import org.jetbrains.exposed.sql.select
|
||||
import org.jetbrains.exposed.sql.selectAll
|
||||
import org.jetbrains.exposed.sql.transactions.transaction
|
||||
import suwayomi.tachidesk.graphql.asDataFetcherResult
|
||||
import suwayomi.tachidesk.graphql.types.TrackRecordType
|
||||
@@ -127,7 +127,8 @@ class TrackMutation {
|
||||
val trackRecord =
|
||||
transaction {
|
||||
TrackRecordTable
|
||||
.select {
|
||||
.selectAll()
|
||||
.where {
|
||||
TrackRecordTable.mangaId eq mangaId and (TrackRecordTable.trackerId eq trackerId)
|
||||
}.first()
|
||||
}
|
||||
@@ -156,7 +157,8 @@ class TrackMutation {
|
||||
val trackRecord =
|
||||
transaction {
|
||||
TrackRecordTable
|
||||
.select {
|
||||
.selectAll()
|
||||
.where {
|
||||
TrackRecordTable.id eq recordId
|
||||
}.first()
|
||||
}
|
||||
@@ -187,7 +189,8 @@ class TrackMutation {
|
||||
val trackRecord =
|
||||
transaction {
|
||||
TrackRecordTable
|
||||
.select {
|
||||
.selectAll()
|
||||
.where {
|
||||
TrackRecordTable.id eq recordId
|
||||
}.firstOrNull()
|
||||
}
|
||||
@@ -217,7 +220,8 @@ class TrackMutation {
|
||||
val trackRecords =
|
||||
transaction {
|
||||
TrackRecordTable
|
||||
.select { TrackRecordTable.mangaId eq mangaId }
|
||||
.selectAll()
|
||||
.where { TrackRecordTable.mangaId eq mangaId }
|
||||
.toList()
|
||||
}
|
||||
TrackProgressPayload(
|
||||
@@ -262,7 +266,8 @@ class TrackMutation {
|
||||
val trackRecord =
|
||||
transaction {
|
||||
TrackRecordTable
|
||||
.select {
|
||||
.selectAll()
|
||||
.where {
|
||||
TrackRecordTable.id eq input.recordId
|
||||
}.firstOrNull()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user