Fixed the issue where Job and Share link is not delete when peer deleted

This commit is contained in:
Donald Zou
2025-08-20 14:15:03 +08:00
parent c5b72cb6d8
commit eab2c9d358
2 changed files with 6 additions and 2 deletions

View File

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