Skip to content

Commit

Permalink
fix: save empty key (#5411)
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 authored Feb 26, 2025
1 parent 692ab3a commit 0ca9f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/aiproxy/model/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func UpdateChannel(channel *Channel) error {
}
result := DB.
Model(channel).
Omit("used_amount", "request_count", "created_at", "balance_updated_at", "balance").
Select("model_mapping", "key", "name", "base_url", "models", "status", "type", "priority", "config").
Clauses(clause.Returning{}).
Where("id = ?", channel.ID).
Updates(channel)
Expand Down

0 comments on commit 0ca9f19

Please sign in to comment.