mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-16 08:04:10 +00:00
fix: fetch root user's email if blank (#129)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user