Skip to content

Commit

Permalink
Silent cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonman01 committed Dec 17, 2024
1 parent 08f845f commit fa68e16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/wire/bots/polls/dao/PollOptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ object PollOptions : Table("poll_option") {
*/
val optionContent: Column<String> = varchar("option_content", 256)

override val primaryKey: PrimaryKey?
override val primaryKey: PrimaryKey
get() = PrimaryKey(pollId, optionOrder)
}
2 changes: 1 addition & 1 deletion src/main/kotlin/com/wire/bots/polls/dao/Polls.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ object Polls : Table("polls") {
*/
val created: Column<LocalDateTime> = datetime("time_stamp")

override val primaryKey: PrimaryKey?
override val primaryKey: PrimaryKey
get() = PrimaryKey(id)
}
2 changes: 1 addition & 1 deletion src/main/kotlin/com/wire/bots/polls/dao/Votes.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ object Votes : Table("votes") {
*/
val userId: Column<String> = varchar("user_id", 36)

override val primaryKey: PrimaryKey?
override val primaryKey: PrimaryKey
get() = PrimaryKey(pollId, userId)
}

0 comments on commit fa68e16

Please sign in to comment.