From 0fa94d3c9413e29180bf44aa0e9961ede84497ee Mon Sep 17 00:00:00 2001 From: Martial BE Date: Thu, 28 Dec 2023 11:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20log=20channel=20is=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/relay-utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/relay-utils.go b/controller/relay-utils.go index c513883e..0a94fffe 100644 --- a/controller/relay-utils.go +++ b/controller/relay-utils.go @@ -45,6 +45,8 @@ func fetchChannel(c *gin.Context, modelName string) (channel *model.Channel, pas return } + c.Set("channel_id", channel.Id) + return }