fix : unify dto conversion

This commit is contained in:
2024-12-30 00:39:06 +01:00
parent e9d5d8d909
commit cdddb9a073
8 changed files with 54 additions and 21 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
export class UserResponseDTO {
constructor(partial: Partial<UserResponseDTO>) {
Object.assign(this, partial);
this.id = partial.id;
this.username = partial.username;
this.avatar = partial.avatar;
}
id: string;