Template
fix: Corrected data typing in POST /setup
This commit is contained in:
1 parent
30ed7284c5
commit
92fce5bd7b
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user