chore : remove class-transformer

This commit is contained in:
2024-12-29 23:47:41 +01:00
parent 49adbdec5b
commit e9d5d8d909
9 changed files with 48 additions and 56 deletions
+1 -5
View File
@@ -1,16 +1,12 @@
import { Expose, Type } from 'class-transformer';
import { UserResponseDTO } from './userresponse.dto';
export class PlayerResponseDTO {
constructor(partial: Partial<PlayerResponseDTO>) {
Object.assign(this, partial);
this.user = partial.user;
this.user = new UserResponseDTO(partial.user);
}
@Type(() => UserResponseDTO)
@Expose()
user: UserResponseDTO;
@Expose()
score: number;
}