diff --git a/src/models/user.ts b/src/models/user.ts index 4f8078a7..6dc05a71 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -18,30 +18,6 @@ export class User extends ExtendedBaseEntity { @Column({ nullable: false }) last_name: string; - @Column({ nullable: false }) - username: string; - - @Column({ nullable: false }) - bio: string; - - @Column({ nullable: false }) - job_title: string; - - @Column({ nullable: false }) - language: string; - - @Column({ nullable: false }) - pronouns: string; - - @Column({ nullable: false }) - department: string; - - @Column({ nullable: false }) - social_links: string; - - @Column({ nullable: false }) - timezones: string; - @Column({ unique: true, nullable: false }) @IsEmail(undefined, { message: getIsInvalidMessage("Email") }) email: string; diff --git a/src/services/userservice.ts b/src/services/userservice.ts index c0429c39..8018fc90 100644 --- a/src/services/userservice.ts +++ b/src/services/userservice.ts @@ -1,4 +1,4 @@ -import { User } from "../models/user"; +import { User, Profile } from "../models/user"; import AppDataSource from "../data-source"; import { ResourceNotFound } from "../middleware"; @@ -20,8 +20,8 @@ export class UserService { static async updateUserById( id: string, - updateData: Partial, - ): Promise { + updateData: Partial, + ): Promise { const userRepository = AppDataSource.getRepository(User); let user = await userRepository.findOne({ where: { id },