mirror of
https://github.com/coaidev/coai.git
synced 2025-05-28 09:20:18 +09:00
fix
This commit is contained in:
parent
205cdc1400
commit
5e67bd49e0
@ -5,6 +5,7 @@ import (
|
||||
"chat/globals"
|
||||
"chat/utils"
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"log"
|
||||
)
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user