aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user/user.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-08-25 11:45:31 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-08-25 11:45:31 +0200
commit0aef76c479bc7fc758e70e1cd478ade46761b51b (patch)
treeed59eae3ee731c56d25cc35a382f4cc400d0dece /server/models/user/user.ts
parent93e1258c7cbc0d1235ca6d2a1f7c1875985328b8 (diff)
downloadPeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.tar.gz
PeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.tar.zst
PeerTube-0aef76c479bc7fc758e70e1cd478ade46761b51b.zip
Formated -> Formatted
Diffstat (limited to 'server/models/user/user.ts')
-rw-r--r--server/models/user/user.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts
index bda95d2f6..e1b933988 100644
--- a/server/models/user/user.ts
+++ b/server/models/user/user.ts
@@ -21,7 +21,7 @@ import {
21 21
22let User: Sequelize.Model<UserInstance, UserAttributes> 22let User: Sequelize.Model<UserInstance, UserAttributes>
23let isPasswordMatch: UserMethods.IsPasswordMatch 23let isPasswordMatch: UserMethods.IsPasswordMatch
24let toFormatedJSON: UserMethods.ToFormatedJSON 24let toFormattedJSON: UserMethods.ToFormattedJSON
25let isAdmin: UserMethods.IsAdmin 25let isAdmin: UserMethods.IsAdmin
26let countTotal: UserMethods.CountTotal 26let countTotal: UserMethods.CountTotal
27let getByUsername: UserMethods.GetByUsername 27let getByUsername: UserMethods.GetByUsername
@@ -108,7 +108,7 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da
108 ] 108 ]
109 const instanceMethods = [ 109 const instanceMethods = [
110 isPasswordMatch, 110 isPasswordMatch,
111 toFormatedJSON, 111 toFormattedJSON,
112 isAdmin 112 isAdmin
113 ] 113 ]
114 addMethodsToModel(User, classMethods, instanceMethods) 114 addMethodsToModel(User, classMethods, instanceMethods)
@@ -129,7 +129,7 @@ isPasswordMatch = function (this: UserInstance, password: string) {
129 return comparePassword(password, this.password) 129 return comparePassword(password, this.password)
130} 130}
131 131
132toFormatedJSON = function (this: UserInstance) { 132toFormattedJSON = function (this: UserInstance) {
133 return { 133 return {
134 id: this.id, 134 id: this.id,
135 username: this.username, 135 username: this.username,