mirror of
https://github.com/cloudreve/cloudreve.git
synced 2025-11-01 19:13:39 +08:00
Fix: node should not be refreshed when editing node with status=inactive
This commit is contained in:
@ -24,7 +24,10 @@ func (service *AddNodeService) Add() serializer.Response {
|
||||
}
|
||||
}
|
||||
|
||||
cluster.Default.Add(&service.Node)
|
||||
if service.Node.Status == model.NodeActive {
|
||||
cluster.Default.Add(&service.Node)
|
||||
}
|
||||
|
||||
return serializer.Response{Data: service.Node.ID}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user