Commit 897c9095 by quzard Committed by GitHub

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

parent 7a141b3b
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment