From 5e3ca4d5716d89576ff6e7dec05c6e099a6caeec Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Tue, 16 Sep 2025 14:23:16 +0800 Subject: [PATCH] fix(api): add id field in HistoricalEventDto --- .../komga/infrastructure/jooq/main/HistoricalEventDtoDao.kt | 1 + .../gotson/komga/interfaces/api/rest/dto/HistoricalEventDto.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/main/HistoricalEventDtoDao.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/main/HistoricalEventDtoDao.kt index 494f2480f..8e718dff9 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/main/HistoricalEventDtoDao.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/main/HistoricalEventDtoDao.kt @@ -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, diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/dto/HistoricalEventDto.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/dto/HistoricalEventDto.kt index 6bbfbd4be..9ded351c9 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/dto/HistoricalEventDto.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/dto/HistoricalEventDto.kt @@ -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?,