diff options
Diffstat (limited to 'server/models/poolRequests.js')
-rw-r--r-- | server/models/poolRequests.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/models/poolRequests.js b/server/models/poolRequests.js index 970315597..28093a94c 100644 --- a/server/models/poolRequests.js +++ b/server/models/poolRequests.js | |||
@@ -1,21 +1,21 @@ | |||
1 | 'use strict' | 1 | 'use strict' |
2 | 2 | ||
3 | var mongoose = require('mongoose') | 3 | const mongoose = require('mongoose') |
4 | 4 | ||
5 | var logger = require('../helpers/logger') | 5 | const logger = require('../helpers/logger') |
6 | 6 | ||
7 | // --------------------------------------------------------------------------- | 7 | // --------------------------------------------------------------------------- |
8 | 8 | ||
9 | var poolRequestsSchema = mongoose.Schema({ | 9 | const poolRequestsSchema = mongoose.Schema({ |
10 | type: String, | 10 | type: String, |
11 | id: String, // Special id to find duplicates (video created we want to remove...) | 11 | id: String, // Special id to find duplicates (video created we want to remove...) |
12 | request: mongoose.Schema.Types.Mixed | 12 | request: mongoose.Schema.Types.Mixed |
13 | }) | 13 | }) |
14 | var PoolRequestsDB = mongoose.model('poolRequests', poolRequestsSchema) | 14 | const PoolRequestsDB = mongoose.model('poolRequests', poolRequestsSchema) |
15 | 15 | ||
16 | // --------------------------------------------------------------------------- | 16 | // --------------------------------------------------------------------------- |
17 | 17 | ||
18 | var PoolRequests = { | 18 | const PoolRequests = { |
19 | create: create, | 19 | create: create, |
20 | findById: findById, | 20 | findById: findById, |
21 | list: list, | 21 | list: list, |