浏览代码

fix: fetch root user's email if blank (#129)

quzard 3 年之前
父节点
当前提交
f19ee05351
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      controller/channel-test.go

+ 3 - 0
controller/channel-test.go

@@ -134,6 +134,9 @@ func disableChannel(channelId int, channelName string, reason string) {
 }
 }
 
 
 func testAllChannels(c *gin.Context) error {
 func testAllChannels(c *gin.Context) error {
+	if common.RootUserEmail == "" {
+		common.RootUserEmail = model.GetRootUserEmail()
+	}
 	testAllChannelsLock.Lock()
 	testAllChannelsLock.Lock()
 	if testAllChannelsRunning {
 	if testAllChannelsRunning {
 		testAllChannelsLock.Unlock()
 		testAllChannelsLock.Unlock()