mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-02-26 05:58:47 +00:00
Bug fixed
Bug Fixed deletePeerScheduleJob endpoint
This commit is contained in:
parent
b26ae90807
commit
95d8985336
@ -2306,7 +2306,7 @@ def API_savePeerScheduleJob():
|
||||
@app.post(f'{APP_PREFIX}/api/deletePeerScheduleJob/')
|
||||
def API_deletePeerScheduleJob():
|
||||
data = request.json
|
||||
if "Job" not in data.keys() not in WireguardConfigurations.keys():
|
||||
if "Job" not in data.keys() and "Job" not in WireguardConfigurations.keys():
|
||||
return ResponseObject(False, "Please specify job")
|
||||
job: dict = data['Job']
|
||||
if "Peer" not in job.keys() or "Configuration" not in job.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user