mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 07:46:18 +00:00
Testing system status and webhook
This commit is contained in:
@@ -751,7 +751,7 @@ def API_addPeers(configName):
|
||||
status, result = config.addPeers(keyPairs)
|
||||
DashboardWebHooks.RunWebHook('peer_created', {
|
||||
"configuration": config.Name,
|
||||
"peers": list(map(lambda p : p.id, keyPairs))
|
||||
"peers": list(map(lambda p : p['id'], keyPairs))
|
||||
})
|
||||
return ResponseObject(status=status, message=result['message'], data=result['peers'])
|
||||
|
||||
|
Reference in New Issue
Block a user