mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00
feat: Allow updating createdAt
field for announcements
This commit is contained in:
parent
55e3774f07
commit
58ba4cb11c
@ -63,6 +63,7 @@ class ApiAnnouncement(
|
|||||||
val attachments: List<String> = emptyList(),
|
val attachments: List<String> = emptyList(),
|
||||||
// Using a list instead of a set because set semantics are unnecessary here.
|
// Using a list instead of a set because set semantics are unnecessary here.
|
||||||
val tags: List<String> = emptyList(),
|
val tags: List<String> = emptyList(),
|
||||||
|
val createdAt: LocalDateTime,
|
||||||
val archivedAt: LocalDateTime? = null,
|
val archivedAt: LocalDateTime? = null,
|
||||||
val level: Int = 0,
|
val level: Int = 0,
|
||||||
)
|
)
|
||||||
|
@ -120,6 +120,7 @@ internal class AnnouncementRepository(private val database: Database) {
|
|||||||
it.author = new.author
|
it.author = new.author
|
||||||
it.title = new.title
|
it.title = new.title
|
||||||
it.content = new.content
|
it.content = new.content
|
||||||
|
it.createdAt = new.createdAt
|
||||||
it.archivedAt = new.archivedAt
|
it.archivedAt = new.archivedAt
|
||||||
it.level = new.level
|
it.level = new.level
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user