summaryrefslogtreecommitdiffstats
path: root/server/api/setup.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/api/setup.js')
-rw-r--r--server/api/setup.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/setup.js b/server/api/setup.js
index daade25..228229a 100644
--- a/server/api/setup.js
+++ b/server/api/setup.js
@@ -18,7 +18,7 @@ noAuthRouter.get('/status', (req, res) => {
noAuthRouter.postAsync('/', async (req, res) => {
const body = req.body
const users = await db.user.findAll()
- if (users.length > 0) res.status(403).send({ status: 'USERTABLE_NOT_EMPTY', error_message: 'The user table is not empty, unauthorized creation is forbidden.' })
+ if (users.length > 0) res.status(403).send({ error: 'USERTABLE_NOT_EMPTY', message: 'The user table is not empty, unauthorized creation is forbidden.' })
else {
const result = await authentication.signup(body)
const code = result.code