@@ -62,7 +62,7 @@ func (h *Handlers) CreateSoundboardItem(c echo.Context) error {
62
62
func (h * Handlers ) PlaySoundboardItem (c echo.Context ) error {
63
63
type playSoundboardItemRequest struct {
64
64
SoundID string `json:"soundId"`
65
- RoomID string `json:"roomID "`
65
+ RoomID string `json:"roomId "`
66
66
}
67
67
var req playSoundboardItemRequest
68
68
if err := c .Bind (& req ); err != nil {
@@ -146,12 +146,12 @@ func (h *Handlers) PlaySoundboardItem(c echo.Context) error {
146
146
}
147
147
148
148
resp := struct {
149
- IngressId string `json:"ingressId"`
150
- Url * string `json:"url"`
149
+ IngressID string `json:"ingressId"`
150
+ URL * string `json:"url"`
151
151
StreamKey * string `json:"streamKey"`
152
152
}{
153
- IngressId : info .IngressId ,
154
- Url : & info .Url ,
153
+ IngressID : info .IngressId ,
154
+ URL : & info .Url ,
155
155
StreamKey : & info .StreamKey ,
156
156
}
157
157
return c .JSON (http .StatusOK , resp )
@@ -324,7 +324,7 @@ func (h *Handlers) GetLiveKitToken(c echo.Context) error {
324
324
325
325
roomID , err := uuid .FromString (room )
326
326
if err != nil {
327
- return herror .BadRequest ("invalid room ID " )
327
+ return herror .BadRequest ("invalid room Id " )
328
328
}
329
329
330
330
if ! h .ChannelManager .PublicChannelTree ().IsChannelPresent (roomID ) {
0 commit comments