diff options
Diffstat (limited to 'server/models/pods.js')
-rw-r--r-- | server/models/pods.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/server/models/pods.js b/server/models/pods.js index 59de2d60c..4020a9603 100644 --- a/server/models/pods.js +++ b/server/models/pods.js | |||
@@ -24,18 +24,18 @@ PodSchema.path('publicKey').required(true) | |||
24 | PodSchema.path('score').validate(function (value) { return !isNaN(value) }) | 24 | PodSchema.path('score').validate(function (value) { return !isNaN(value) }) |
25 | 25 | ||
26 | PodSchema.methods = { | 26 | PodSchema.methods = { |
27 | toFormatedJSON: toFormatedJSON | 27 | toFormatedJSON |
28 | } | 28 | } |
29 | 29 | ||
30 | PodSchema.statics = { | 30 | PodSchema.statics = { |
31 | countAll: countAll, | 31 | countAll, |
32 | incrementScores: incrementScores, | 32 | incrementScores, |
33 | list: list, | 33 | list, |
34 | listAllIds: listAllIds, | 34 | listAllIds, |
35 | listBadPods: listBadPods, | 35 | listBadPods, |
36 | load: load, | 36 | load, |
37 | loadByUrl: loadByUrl, | 37 | loadByUrl, |
38 | removeAll: removeAll | 38 | removeAll |
39 | } | 39 | } |
40 | 40 | ||
41 | PodSchema.pre('save', function (next) { | 41 | PodSchema.pre('save', function (next) { |