diff options
Diffstat (limited to 'client/src/app/core/users/user.model.ts')
-rw-r--r-- | client/src/app/core/users/user.model.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts index 2d783145f..d57608f1c 100644 --- a/client/src/app/core/users/user.model.ts +++ b/client/src/app/core/users/user.model.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import { Account } from '@app/shared/shared-main/account/account.model' | 1 | import { Account } from '@app/shared/shared-main/account/account.model' |
2 | import { objectKeysTyped } from '@shared/core-utils' | ||
2 | import { hasUserRight } from '@shared/core-utils/users' | 3 | import { hasUserRight } from '@shared/core-utils/users' |
3 | import { | 4 | import { |
4 | ActorImage, | 5 | ActorImage, |
@@ -130,8 +131,9 @@ export class User implements UserServerModel { | |||
130 | } | 131 | } |
131 | 132 | ||
132 | patch (obj: UserServerModel) { | 133 | patch (obj: UserServerModel) { |
133 | for (const key of Object.keys(obj)) { | 134 | for (const key of objectKeysTyped(obj)) { |
134 | this[key] = obj[key] | 135 | // FIXME: typings |
136 | (this as any)[key] = obj[key] | ||
135 | } | 137 | } |
136 | 138 | ||
137 | if (obj.account !== undefined) { | 139 | if (obj.account !== undefined) { |