Skip to content

Commit

Permalink
gemini response fix
Browse files Browse the repository at this point in the history
  • Loading branch information
physcom committed May 27, 2024
1 parent 3148a22 commit 21680b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class User(email: String? = null, firstName: String? = null, lastName: String? =

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private val id = 0
val id = 0

@Column(name = "email", unique = false)
var email: String? = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class MessageServiceImpl(
message.id,
message.sender,
message.recipient!!,
message.body!!,
response!!,
message.contentType,
message.receivedAt!!,
message.sentAt,
Expand Down Expand Up @@ -245,8 +245,8 @@ class MessageServiceImpl(
message.contentType,
message.receivedAt!!,
message.sentAt,
message.privateChatId!!,
message.groupChatId!!,
message.privateChatId,
message.groupChatId,
attachments.map { messageAttachment -> messageAttachment.attachmentId!! }
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data class MessageResponse(
var contentType: MessageContentType,
var receivedAt: LocalDateTime,
var sentAt: LocalDateTime,
var privateChatId: Int,
var privateChatId: Int?,
var groupChatId: Int?,
var attachments: List<Int> = emptyList()
)

0 comments on commit 21680b6

Please sign in to comment.