fix: fetch root user's email if blank (#129)
This commit is contained in:
1 parent
7a141b3ba9
commit
897c9095b7
1 file changed
+3
@@ -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()
|
||||||
|
|||||||
Reference in new issue
Block a user