perf: update config related code

This commit is contained in:
JustSong
2024-04-20 00:23:31 +08:00
parent 00fa86c000
commit e0dc6e29b2
5 changed files with 32 additions and 37 deletions

View File

@@ -59,7 +59,6 @@ func Distribute() func(c *gin.Context) {
}
func SetupContextForSelectedChannel(c *gin.Context, channel *model.Channel, modelName string) {
c.Set(ctxkey.Channel, channel)
c.Set("channel", channel.Type)
c.Set("channel_id", channel.Id)
c.Set("channel_name", channel.Name)