diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 11:02:35 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 11:02:35 +0200 |
commit | 69f616ab3aeefd6ce330600604df90f2f48bfe3b (patch) | |
tree | 1b40d6005e645d97a7db9784f32cd90b156528fa /server/models/user.ts | |
parent | 75fb0c0b2efe7fb952d45d2bf111e9594f7d5b42 (diff) | |
download | PeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.tar.gz PeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.tar.zst PeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.zip |
Use shared models
Diffstat (limited to 'server/models/user.ts')
-rw-r--r-- | server/models/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/user.ts b/server/models/user.ts index 0fbfdda50..cd383a16a 100644 --- a/server/models/user.ts +++ b/server/models/user.ts | |||
@@ -135,7 +135,7 @@ isPasswordMatch = function (password: string, callback: UserMethods.IsPasswordMa | |||
135 | return comparePassword(password, this.password, callback) | 135 | return comparePassword(password, this.password, callback) |
136 | } | 136 | } |
137 | 137 | ||
138 | toFormatedJSON = function () { | 138 | toFormatedJSON = function (this: UserInstance) { |
139 | return { | 139 | return { |
140 | id: this.id, | 140 | id: this.id, |
141 | username: this.username, | 141 | username: this.username, |