Explorar o código

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

quzard %!s(int64=2) %!d(string=hai) anos
pai
achega
f19ee05351
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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 {
+	if common.RootUserEmail == "" {
+		common.RootUserEmail = model.GetRootUserEmail()
+	}
 	testAllChannelsLock.Lock()
 	if testAllChannelsRunning {
 		testAllChannelsLock.Unlock()