feat : send only user ids

This commit is contained in:
2024-12-30 12:04:53 +01:00
parent 735e47cdbe
commit e872eeea91
2 changed files with 8 additions and 4 deletions
+5 -2
View File
@@ -3,10 +3,13 @@ import { UserResponseDTO } from './userresponse.dto';
export class PlayerResponseDTO {
constructor(partial: Partial<PlayerResponseDTO>) {
this.score = partial.score;
this.user = new UserResponseDTO(partial.user);
this.userId = partial.userId;
this.id = partial.id;
// this.user = new UserResponseDTO(partial.user);
}
user: UserResponseDTO;
id: number;
userId: number;
score: number;
}