diff --git a/src/main/kotlin/app/revanced/api/configuration/APISchema.kt b/src/main/kotlin/app/revanced/api/configuration/APISchema.kt index c4432ae..2fa588a 100644 --- a/src/main/kotlin/app/revanced/api/configuration/APISchema.kt +++ b/src/main/kotlin/app/revanced/api/configuration/APISchema.kt @@ -63,6 +63,7 @@ class ApiAnnouncement( val attachments: List = emptyList(), // Using a list instead of a set because set semantics are unnecessary here. val tags: List = emptyList(), + val createdAt: LocalDateTime, val archivedAt: LocalDateTime? = null, val level: Int = 0, ) diff --git a/src/main/kotlin/app/revanced/api/configuration/repository/AnnouncementRepository.kt b/src/main/kotlin/app/revanced/api/configuration/repository/AnnouncementRepository.kt index 01d74e2..6acfa29 100644 --- a/src/main/kotlin/app/revanced/api/configuration/repository/AnnouncementRepository.kt +++ b/src/main/kotlin/app/revanced/api/configuration/repository/AnnouncementRepository.kt @@ -120,6 +120,7 @@ internal class AnnouncementRepository(private val database: Database) { it.author = new.author it.title = new.title it.content = new.content + it.createdAt = new.createdAt it.archivedAt = new.archivedAt it.level = new.level