Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Oct 24, 2023
1 parent 205cdc1 commit 5e67bd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manager/conversation/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"chat/globals"
"chat/utils"
"database/sql"
"fmt"
"log"
)

Expand Down Expand Up @@ -33,6 +34,7 @@ func (c *Conversation) SaveConversation(db *sql.DB) bool {

_, err = stmt.Exec(c.UserID, c.Id, c.Name, data, c.Model)
if err != nil {
fmt.Println(fmt.Sprintf("execute error during save conversation: %s", err.Error()))
return false
}
return true
Expand Down

0 comments on commit 5e67bd4

Please sign in to comment.