From 2746687e82bc72913fc1a29b96890e4140bce8f0 Mon Sep 17 00:00:00 2001 From: iZooGooD Date: Sun, 11 Feb 2024 10:49:50 +0530 Subject: [PATCH] fix: minor bug fix for user controller --- server/controllers/User.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/User.controller.js b/server/controllers/User.controller.js index 5338014..3c5a8c3 100644 --- a/server/controllers/User.controller.js +++ b/server/controllers/User.controller.js @@ -27,7 +27,7 @@ export const registerUser = async (req, res) => { if (!err) { await User.create({ firstName: req.body.firstName, - lastName: req.body.firstName, + lastName: req.body.lastName, email: req.body.email, password: hash, phoneNumber: req.body.phoneNumber,