diff options
Diffstat (limited to 'client/src/app/shared/users')
-rw-r--r-- | client/src/app/shared/users/user.model.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index 726495d11..52d89e004 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts | |||
@@ -1,16 +1,16 @@ | |||
1 | export class User { | 1 | export class User { |
2 | id: string; | 2 | id: number; |
3 | username: string; | 3 | username: string; |
4 | role: string; | 4 | role: string; |
5 | createdDate: Date; | 5 | createdAt: Date; |
6 | 6 | ||
7 | constructor(hash: { id: string, username: string, role: string, createdDate?: Date }) { | 7 | constructor(hash: { id: number, username: string, role: string, createdAt?: Date }) { |
8 | this.id = hash.id; | 8 | this.id = hash.id; |
9 | this.username = hash.username; | 9 | this.username = hash.username; |
10 | this.role = hash.role; | 10 | this.role = hash.role; |
11 | 11 | ||
12 | if (hash.createdDate) { | 12 | if (hash.createdAt) { |
13 | this.createdDate = hash.createdDate; | 13 | this.createdAt = hash.createdAt; |
14 | } | 14 | } |
15 | } | 15 | } |
16 | 16 | ||