diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-14 10:57:56 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | e34c85e527100c0b5c44567bd951e95be41b8d7e (patch) | |
tree | 39697c5a4dda2c2e07142a8522538db783fce2fd /server/models/pod | |
parent | 1e1265b36c09df1465aa2b4866815c957b6a532e (diff) | |
download | PeerTube-e34c85e527100c0b5c44567bd951e95be41b8d7e.tar.gz PeerTube-e34c85e527100c0b5c44567bd951e95be41b8d7e.tar.zst PeerTube-e34c85e527100c0b5c44567bd951e95be41b8d7e.zip |
Fix issues on server start
Diffstat (limited to 'server/models/pod')
-rw-r--r-- | server/models/pod/pod.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/server/models/pod/pod.ts b/server/models/pod/pod.ts index 7c8b49bf8..6d270ad7f 100644 --- a/server/models/pod/pod.ts +++ b/server/models/pod/pod.ts | |||
@@ -63,8 +63,6 @@ export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.Da | |||
63 | ) | 63 | ) |
64 | 64 | ||
65 | const classMethods = [ | 65 | const classMethods = [ |
66 | associate, | ||
67 | |||
68 | countAll, | 66 | countAll, |
69 | incrementScores, | 67 | incrementScores, |
70 | list, | 68 | list, |
@@ -98,14 +96,6 @@ toFormattedJSON = function (this: PodInstance) { | |||
98 | 96 | ||
99 | // ------------------------------ Statics ------------------------------ | 97 | // ------------------------------ Statics ------------------------------ |
100 | 98 | ||
101 | function associate (models) { | ||
102 | Pod.belongsToMany(models.Request, { | ||
103 | foreignKey: 'podId', | ||
104 | through: models.RequestToPod, | ||
105 | onDelete: 'cascade' | ||
106 | }) | ||
107 | } | ||
108 | |||
109 | countAll = function () { | 99 | countAll = function () { |
110 | return Pod.count() | 100 | return Pod.count() |
111 | } | 101 | } |