aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/poolRequests.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/poolRequests.js')
-rw-r--r--server/models/poolRequests.js10
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
3var mongoose = require('mongoose') 3const mongoose = require('mongoose')
4 4
5var logger = require('../helpers/logger') 5const logger = require('../helpers/logger')
6 6
7// --------------------------------------------------------------------------- 7// ---------------------------------------------------------------------------
8 8
9var poolRequestsSchema = mongoose.Schema({ 9const 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})
14var PoolRequestsDB = mongoose.model('poolRequests', poolRequestsSchema) 14const PoolRequestsDB = mongoose.model('poolRequests', poolRequestsSchema)
15 15
16// --------------------------------------------------------------------------- 16// ---------------------------------------------------------------------------
17 17
18var PoolRequests = { 18const PoolRequests = {
19 create: create, 19 create: create,
20 findById: findById, 20 findById: findById,
21 list: list, 21 list: list,