aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-08-28 10:56:09 +0200
committerChocobozzz <me@florianbigard.com>2018-08-28 10:56:09 +0200
commitbfcef50db9c1c1d34ea550ea156c52cb327e160e (patch)
treee3e86ac9d0b2c46d78ba0bcc473a0fc47ef9ce4e /server/models/account
parentb224ddd88b767b9a6402e3648993b4f2707057ef (diff)
downloadPeerTube-bfcef50db9c1c1d34ea550ea156c52cb327e160e.tar.gz
PeerTube-bfcef50db9c1c1d34ea550ea156c52cb327e160e.tar.zst
PeerTube-bfcef50db9c1c1d34ea550ea156c52cb327e160e.zip
Fix oauth server module
Diffstat (limited to 'server/models/account')
-rw-r--r--server/models/account/user.ts5
1 files changed, 0 insertions, 5 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts
index 178012eae..a88ec244f 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -193,9 +193,6 @@ export class UserModel extends Model<UserModel> {
193 193
194 return UserModel.findAndCountAll(query) 194 return UserModel.findAndCountAll(query)
195 .then(({ rows, count }) => { 195 .then(({ rows, count }) => {
196 console.log(rows[0])
197 console.log(rows[0]['videoQuotaUsed'])
198 console.log(rows[0].get('videoQuotaUsed'))
199 return { 196 return {
200 data: rows, 197 data: rows,
201 total: count 198 total: count
@@ -208,8 +205,6 @@ export class UserModel extends Model<UserModel> {
208 .map(k => parseInt(k, 10) as UserRole) 205 .map(k => parseInt(k, 10) as UserRole)
209 .filter(role => hasUserRight(role, right)) 206 .filter(role => hasUserRight(role, right))
210 207
211 console.log(roles)
212
213 const query = { 208 const query = {
214 attribute: [ 'email' ], 209 attribute: [ 'email' ],
215 where: { 210 where: {