Add missing UserID to VoiceProcessingData
This commit is contained in:
parent
7eae103756
commit
f9206c7c99
1
model.go
1
model.go
|
@ -91,6 +91,7 @@ type VoiceProcessingData struct {
|
|||
io.ReadCloser
|
||||
|
||||
Client *http.Client
|
||||
UserID string
|
||||
URL string
|
||||
File string
|
||||
|
||||
|
|
2
node.go
2
node.go
|
@ -208,6 +208,8 @@ func (node *Node) onEvent(v *fastjson.Value, msg []byte) error {
|
|||
track := jsonStringValue(v, "track")
|
||||
|
||||
data := &VoiceProcessingData{
|
||||
Client: node.client,
|
||||
UserID: jsonStringValue(v, "userId"),
|
||||
URL: fmt.Sprintf("%s/audio/%s", node.config.REST, track),
|
||||
File: track,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue