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

This commit is contained in:
quzard 2023-05-31 15:24:40 +08:00 committed by GitHub
parent fa71daa8a7
commit f19ee05351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()