diff options
Diffstat (limited to 'server/models/pod/pod.ts')
-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 | } |