fix(api): add id field in HistoricalEventDto

This commit is contained in:
Gauthier Roebroeck 2025-09-16 14:23:16 +08:00
parent 730b093a5f
commit 5e3ca4d571
2 changed files with 2 additions and 0 deletions

View file

@ -44,6 +44,7 @@ class HistoricalEventDtoDao(
.map { er ->
val epr = dslRO.selectFrom(ep).where(ep.ID.eq(er.id)).fetch()
HistoricalEventDto(
id = er.id,
type = er.type,
timestamp = er.timestamp,
bookId = er.bookId,

View file

@ -3,6 +3,7 @@ package org.gotson.komga.interfaces.api.rest.dto
import java.time.LocalDateTime
data class HistoricalEventDto(
val id: String,
val type: String,
val timestamp: LocalDateTime,
val bookId: String?,