mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 15:56:17 +00:00
Fixed the issue where Job and Share link is not delete when peer deleted
This commit is contained in:
@@ -583,7 +583,7 @@ def API_deletePeers(configName: str) -> ResponseObject:
|
||||
if len(peers) == 0:
|
||||
return ResponseObject(False, "Please specify one or more peers", status_code=400)
|
||||
configuration = WireguardConfigurations.get(configName)
|
||||
status, msg = configuration.deletePeers(peers)
|
||||
status, msg = configuration.deletePeers(peers, AllPeerJobs, AllPeerShareLinks)
|
||||
return ResponseObject(status, msg)
|
||||
|
||||
return ResponseObject(False, "Configuration does not exist", status_code=404)
|
||||
|
Reference in New Issue
Block a user