aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-17 15:52:26 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:40:52 +0100
commit79d5caf994edd87ad721994490f10677be277497 (patch)
tree0db45893d8b78e34ce3d59849d0a331977a63d4b /server/models/account
parent572f8d3dba44ba874f5c51023214273e3f5b643c (diff)
downloadPeerTube-79d5caf994edd87ad721994490f10677be277497.tar.gz
PeerTube-79d5caf994edd87ad721994490f10677be277497.tar.zst
PeerTube-79d5caf994edd87ad721994490f10677be277497.zip
Fix lint
Diffstat (limited to 'server/models/account')
-rw-r--r--server/models/account/account-video-rate-interface.ts6
-rw-r--r--server/models/account/account.ts27
2 files changed, 15 insertions, 18 deletions
diff --git a/server/models/account/account-video-rate-interface.ts b/server/models/account/account-video-rate-interface.ts
index 82cbe38cc..316056246 100644
--- a/server/models/account/account-video-rate-interface.ts
+++ b/server/models/account/account-video-rate-interface.ts
@@ -17,10 +17,12 @@ export interface AccountVideoRateAttributes {
17 videoId: number 17 videoId: number
18} 18}
19 19
20export interface AccountVideoRateInstance extends AccountVideoRateClass, AccountVideoRateAttributes, Sequelize.Instance<AccountVideoRateAttributes> { 20export interface AccountVideoRateInstance
21 extends AccountVideoRateClass, AccountVideoRateAttributes, Sequelize.Instance<AccountVideoRateAttributes> {
21 id: number 22 id: number
22 createdAt: Date 23 createdAt: Date
23 updatedAt: Date 24 updatedAt: Date
24} 25}
25 26
26export interface AccountVideoRateModel extends AccountVideoRateClass, Sequelize.Model<AccountVideoRateInstance, AccountVideoRateAttributes> {} 27export interface AccountVideoRateModel
28 extends AccountVideoRateClass, Sequelize.Model<AccountVideoRateInstance, AccountVideoRateAttributes> {}
diff --git a/server/models/account/account.ts b/server/models/account/account.ts
index c370e1709..faf5fa841 100644
--- a/server/models/account/account.ts
+++ b/server/models/account/account.ts
@@ -1,29 +1,24 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2 2
3import { 3import {
4 isUserUsernameValid, 4 activityPubContextify,
5 isAccountPublicKeyValid,
6 isAccountUrlValid,
7 isAccountPrivateKeyValid,
8 isAccountFollowersCountValid, 5 isAccountFollowersCountValid,
6 isAccountFollowersValid,
9 isAccountFollowingCountValid, 7 isAccountFollowingCountValid,
8 isAccountFollowingValid,
10 isAccountInboxValid, 9 isAccountInboxValid,
11 isAccountOutboxValid, 10 isAccountOutboxValid,
11 isAccountPrivateKeyValid,
12 isAccountPublicKeyValid,
12 isAccountSharedInboxValid, 13 isAccountSharedInboxValid,
13 isAccountFollowersValid, 14 isAccountUrlValid,
14 isAccountFollowingValid, 15 isUserUsernameValid
15 activityPubContextify
16} from '../../helpers' 16} from '../../helpers'
17
18import { addMethodsToModel, getSort } from '../utils'
19import {
20 AccountInstance,
21 AccountAttributes,
22
23 AccountMethods
24} from './account-interface'
25import { sendDeleteAccount } from '../../lib/activitypub/send-request'
26import { CONFIG, CONSTRAINTS_FIELDS } from '../../initializers/constants' 17import { CONFIG, CONSTRAINTS_FIELDS } from '../../initializers/constants'
18import { sendDeleteAccount } from '../../lib/activitypub/send-request'
19
20import { addMethodsToModel } from '../utils'
21import { AccountAttributes, AccountInstance, AccountMethods } from './account-interface'
27 22
28let Account: Sequelize.Model<AccountInstance, AccountAttributes> 23let Account: Sequelize.Model<AccountInstance, AccountAttributes>
29let loadAccountByServerAndUUID: AccountMethods.LoadAccountByServerAndUUID 24let loadAccountByServerAndUUID: AccountMethods.LoadAccountByServerAndUUID