aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/users/user.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/users/user.model.ts')
-rw-r--r--client/src/app/shared/users/user.model.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts
index 52d89e004..f7859f495 100644
--- a/client/src/app/shared/users/user.model.ts
+++ b/client/src/app/shared/users/user.model.ts
@@ -2,12 +2,20 @@ export class User {
2 id: number; 2 id: number;
3 username: string; 3 username: string;
4 role: string; 4 role: string;
5 displayNSFW: boolean;
5 createdAt: Date; 6 createdAt: Date;
6 7
7 constructor(hash: { id: number, username: string, role: string, createdAt?: Date }) { 8 constructor(hash: {
9 id: number,
10 username: string,
11 role: string,
12 displayNSFW?: boolean,
13 createdAt?: Date,
14 }) {
8 this.id = hash.id; 15 this.id = hash.id;
9 this.username = hash.username; 16 this.username = hash.username;
10 this.role = hash.role; 17 this.role = hash.role;
18 this.displayNSFW = hash.displayNSFW;
11 19
12 if (hash.createdAt) { 20 if (hash.createdAt) {
13 this.createdAt = hash.createdAt; 21 this.createdAt = hash.createdAt;