feat(profile): add user profile management with first and last name fields

This commit is contained in:
Nils-Johan Gynther
2026-04-17 20:44:23 +02:00
parent 68b29f6d8e
commit a9e83544c5
9 changed files with 329 additions and 3 deletions
+4
View File
@@ -16,4 +16,8 @@ export class UsersService {
create(data: { username: string; email: string; passwordHash: string }) {
return this.prisma.user.create({ data });
}
updateProfile(id: number, data: { firstName?: string; lastName?: string; email?: string }) {
return this.prisma.user.update({ where: { id }, data });
}
}