feat: update api
This commit is contained in:
parent
11a05a93c2
commit
2c0d483fc1
2 changed files with 9 additions and 1 deletions
|
|
@ -232,7 +232,14 @@ func (neo *DSL) handleChat(c *gin.Context) {
|
|||
defer cancel()
|
||||
defer ctx.Release() // Release the context after the request is done
|
||||
|
||||
neo.Answer(ctx, content, c)
|
||||
err := neo.Answer(ctx, content, c)
|
||||
|
||||
// Error handling
|
||||
if err != nil {
|
||||
message.New().Done().Error(err).Write(c.Writer)
|
||||
c.Done()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// handleChatList handles the chat list request
|
||||
|
|
|
|||
|
|
@ -146,5 +146,6 @@ func auth(field string, value string, password string, sid string) maps.Map {
|
|||
"items": items,
|
||||
},
|
||||
"studio": studio,
|
||||
"sid": sid,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue