diff --git a/server/src/components/User/User.model.ts b/server/src/components/User/User.model.ts index 5ba8f05..44cb2c7 100644 --- a/server/src/components/User/User.model.ts +++ b/server/src/components/User/User.model.ts @@ -25,7 +25,7 @@ class User extends Model { declare email: string; @Column({ type: DataType.STRING, allowNull: true }) - declare avatar: string | undefined; + declare img: string | undefined; @Column({ type: DataType.STRING, allowNull: false }) declare password: string; diff --git a/server/src/components/User/auth.controller.ts b/server/src/components/User/auth.controller.ts index 92d3e40..1001dca 100644 --- a/server/src/components/User/auth.controller.ts +++ b/server/src/components/User/auth.controller.ts @@ -20,6 +20,8 @@ const register = expressAsyncHandler(async (req: Request, res: Response): Promis throw new AppError(409, 'User already exist!'); } + console.log(userData); + const user = await createUser(userData); if (!user) { @@ -55,7 +57,7 @@ const login = expressAsyncHandler(async (req: Request, res: Response): Promise