Skip to content

Commit

Permalink
fix user empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
FunixG committed May 23, 2024
1 parent 2d3ee1a commit 781559e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@funixproductions/angular-core",
"version": "0.1.17",
"version": "0.1.18",
"description": "Package used in all FunixProductions Angular projects",
"scripts": {
"ng": "ng",
Expand Down
2 changes: 1 addition & 1 deletion projects/funixproductions-requests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@funixproductions/funixproductions-requests",
"version": "0.1.17",
"version": "0.1.18",
"description": "Package used in all FunixProductions Angular projects",
"peerDependencies": {
"@angular/common": "^17.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import {UserDTO} from "../user-dto";
import {UserCountry} from "../user-dto";

export class UserUpdateAccountDto extends UserDTO {
export class UserUpdateAccountDto {
oldPassword?: string;
newPassword?: string;
newPasswordConfirmation?: string;
username?: string;
email?: string;
country?: UserCountry;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ export enum UserRole {
}

export class UserDTO extends ApiDTO {
username: string = '';
email: string = '';
username?: string;
email?: string;
role?: UserRole
valid: boolean = true;
country: UserCountry = new UserCountry();
valid?: boolean;
country?: UserCountry;
}

export class UserCountry {
name: string = 'France';
code: number = 250;
countryCode2Chars: string = 'FR';
countryCode3Chars: string = 'FRA';
}
name?: string;
code?: number;
countryCode2Chars?: string;
countryCode3Chars?: string;
}

0 comments on commit 781559e

Please sign in to comment.