]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/users/user.model.ts
Make the client compile too
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / users / user.model.ts
index d738899ab924c7efdd1d12e8e2c5fc24e90f5c44..b075ab717b60a61ad1e80b81eb72d3cd74995a6b 100644 (file)
@@ -14,7 +14,7 @@ export type UserConstructorHash = {
   videoQuota?: number,
   displayNSFW?: boolean,
   createdAt?: Date,
-  author?: {
+  account?: {
     id: number
     uuid: string
   },
@@ -27,7 +27,7 @@ export class User implements UserServerModel {
   role: UserRole
   displayNSFW: boolean
   videoQuota: number
-  author: {
+  account: {
     id: number
     uuid: string
   }
@@ -39,7 +39,7 @@ export class User implements UserServerModel {
     this.username = hash.username
     this.email = hash.email
     this.role = hash.role
-    this.author = hash.author
+    this.account = hash.account
 
     if (hash.videoChannels !== undefined) {
       this.videoChannels = hash.videoChannels