summaryrefslogtreecommitdiffstats
path: root/server/api/registration.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/api/registration.js')
-rw-r--r--server/api/registration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/registration.js b/server/api/registration.js
index 9064846..156ec21 100644
--- a/server/api/registration.js
+++ b/server/api/registration.js
@@ -232,7 +232,7 @@ noAuthRouter.postAsync('/clients', async (req, res) => {
// Add the client to the backends.
const result = backendHelper.addClient(client)
if (ipxe) return res.send(`#!ipxe\nsleep 5\nchain https://` + url + `/api/configloader/\${uuid}`)
- else return res.send(result)
+ else return res.send(await result)
})
noAuthRouter.postAsync('/clients/:uuid', async (req, res) => {