Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 781559e

Browse files
committed
fix user empty strings
1 parent 2d3ee1a commit 781559e

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@funixproductions/angular-core",
3-
"version": "0.1.17",
3+
"version": "0.1.18",
44
"description": "Package used in all FunixProductions Angular projects",
55
"scripts": {
66
"ng": "ng",

projects/funixproductions-requests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@funixproductions/funixproductions-requests",
3-
"version": "0.1.17",
3+
"version": "0.1.18",
44
"description": "Package used in all FunixProductions Angular projects",
55
"peerDependencies": {
66
"@angular/common": "^17.1.0",
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import {UserDTO} from "../user-dto";
1+
import {UserCountry} from "../user-dto";
22

3-
export class UserUpdateAccountDto extends UserDTO {
3+
export class UserUpdateAccountDto {
44
oldPassword?: string;
55
newPassword?: string;
66
newPasswordConfirmation?: string;
7+
username?: string;
8+
email?: string;
9+
country?: UserCountry;
710
}

projects/funixproductions-requests/src/lib/services/funixproductions-api/user/dtos/user-dto.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ export enum UserRole {
99
}
1010

1111
export class UserDTO extends ApiDTO {
12-
username: string = '';
13-
email: string = '';
12+
username?: string;
13+
email?: string;
1414
role?: UserRole
15-
valid: boolean = true;
16-
country: UserCountry = new UserCountry();
15+
valid?: boolean;
16+
country?: UserCountry;
1717
}
1818

1919
export class UserCountry {
20-
name: string = 'France';
21-
code: number = 250;
22-
countryCode2Chars: string = 'FR';
23-
countryCode3Chars: string = 'FRA';
24-
}
20+
name?: string;
21+
code?: number;
22+
countryCode2Chars?: string;
23+
countryCode3Chars?: string;
24+
}

0 commit comments

Comments
 (0)