diff --git a/server/src/routes/zt_registration.js b/server/src/routes/zt_registration.js index 147e858..0cfa646 100644 --- a/server/src/routes/zt_registration.js +++ b/server/src/routes/zt_registration.js @@ -26,11 +26,11 @@ const addZeroTierMember = async (address, name, description) => { name: name }) }) - console.log("Member added successfully.", JSON.stringify(response)); - return response + console.log("Member added successfully. response"); + return respond(200) } catch (e) { console.log("Error: ", e) - return e + throw respond(401, e) } }