Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/controllers/user.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import bcrypt from "bcryptjs"
import cloudinary from "../lib/cloudinary.js"

export const signup = async (req, res) => {
const { email, password, name, profilPic, bio } = req.body
const { email, password, name, profilePic, bio } = req.body

try {
// Validate input
Expand All @@ -29,7 +29,7 @@ export const signup = async (req, res) => {
email,
password: hashedPassword,
name,
profilPic: profilPic || "", // Default to empty string if not provided
avatarUrl: profilePic || "", // Default to empty string if not provided
bio: bio || "", // Default to empty string if not provided
})

Expand Down