mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix: replace first and last name with single field (#4915)
This commit is contained in:
@@ -2,8 +2,7 @@ import { UserEntity } from '@app/infra/entities';
|
||||
|
||||
export class UserDto {
|
||||
id!: string;
|
||||
firstName!: string;
|
||||
lastName!: string;
|
||||
name!: string;
|
||||
email!: string;
|
||||
profileImagePath!: string;
|
||||
}
|
||||
@@ -24,8 +23,7 @@ export const mapSimpleUser = (entity: UserEntity): UserDto => {
|
||||
return {
|
||||
id: entity.id,
|
||||
email: entity.email,
|
||||
firstName: entity.firstName,
|
||||
lastName: entity.lastName,
|
||||
name: entity.name,
|
||||
profileImagePath: entity.profileImagePath,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user