diff --git a/src/routes/authRoutes.js b/src/routes/authRoutes.js index 670e2e3..0418086 100644 --- a/src/routes/authRoutes.js +++ b/src/routes/authRoutes.js @@ -25,15 +25,6 @@ router.post('/register', async (req, res) => { } ) - // now that we have a user, I want to add their first todo for them - const defaultTodo = `Hello :) Add your first todo!` - await prisma.todo.create({ - data:{ - task: defaultTodo, - userId: user.id - } - }) - // create a token const token = jwt.sign({ id: user.id }, process.env.JWT_SECRET, { expiresIn: '24h' }) res.json({ token })