mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 09:16:36 +08:00
Update sdk/api/channel.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
5c952ae86d
commit
534ea7529c
@ -162,8 +162,7 @@ func (channel *Channel) Get(client *OneClient) error {
|
||||
if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
|
||||
return err
|
||||
}
|
||||
channel = data.Data.(*Channel)
|
||||
return nil
|
||||
*channel = *(data.Data.(*Channel))
|
||||
}
|
||||
|
||||
// test channel
|
||||
|
Loading…
Reference in New Issue
Block a user