From 99bdc5451729431d9d3d79c8294c029562621bce Mon Sep 17 00:00:00 2001 From: Per-Arne Andersen Date: Sun, 19 Jul 2020 20:38:46 +0200 Subject: [PATCH] * Fixes #24 - ID was not fetched after insert. --- wg_dashboard_backend/routers/v1/peer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wg_dashboard_backend/routers/v1/peer.py b/wg_dashboard_backend/routers/v1/peer.py index c49c903..c299521 100644 --- a/wg_dashboard_backend/routers/v1/peer.py +++ b/wg_dashboard_backend/routers/v1/peer.py @@ -62,6 +62,7 @@ def add_peer( )) peer.sync(sess) + peer.from_db(sess) # If server is running. Add peer if script.wireguard.is_running(server):