fix: fetch root user's email if blank (#129)
This commit is contained in:
parent
fa71daa8a7
commit
f19ee05351
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user