Forráskód Böngészése

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

quzard 3 éve
szülő
commit
897c9095b7
1 módosított fájl, 3 hozzáadás és 0 törlés
  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()