fix: Corrected data typing in POST /setup

This commit is contained in:
Cyper committed 2026-05-01 21:49:43 -04:00
1 parent 30ed7284c5
commit 92fce5bd7b
1 file changed
+2 -2
+2 -2
View File
@@ -19,12 +19,12 @@ export default function (app: FastifyInstance) {
// prettier-ignore
app.post('/setup', async (req: FastifyRequest<{ Body: SetupRequest }>, reply: FastifyReply) => {
const { username, password, displayName } = req.body;
const { username, password } = req.body;
const userInfo = await createUser({
username,
password,
displayName,
active: true,
});
if (!userInfo.ok) {