diff --git a/server/src/routes/zt_registration.js b/server/src/routes/zt_registration.js index 02017ac..fe7a941 100644 --- a/server/src/routes/zt_registration.js +++ b/server/src/routes/zt_registration.js @@ -17,7 +17,7 @@ const addZeroTierMember = async (address, name, description) => { try { // todo: only for debugging remove asao console.log(`Adding member ${name} with address ${address} to network-id: ${networkId}`) - let response = fetch(`https://my.zerotier.com/api/network/${networkId}/member/${address}`, { + let response = await fetch(`https://my.zerotier.com/api/network/${networkId}/member/${address}`, { method: 'POST', headers: { authorization: `Bearer ${apiToken}` }, body: JSON.stringify({