From f19ee0535158fef38adba1f4e0c0c7605450ebc5 Mon Sep 17 00:00:00 2001 From: quzard <1191890118@qq.com> Date: Wed, 31 May 2023 15:24:40 +0800 Subject: [PATCH] fix: fetch root user's email if blank (#129) --- controller/channel-test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/channel-test.go b/controller/channel-test.go index 0d32c8c6..0ae256f9 100644 --- a/controller/channel-test.go +++ b/controller/channel-test.go @@ -134,6 +134,9 @@ func disableChannel(channelId int, channelName string, reason string) { } func testAllChannels(c *gin.Context) error { + if common.RootUserEmail == "" { + common.RootUserEmail = model.GetRootUserEmail() + } testAllChannelsLock.Lock() if testAllChannelsRunning { testAllChannelsLock.Unlock()