aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/poolRequests.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-16 22:29:27 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-16 22:29:27 +0100
commitf0f5567b6918fc60c8cab15e13aec03a89a91dfb (patch)
tree99dfdb9fa8273c9cda1360fd3b6bfccc515bf8be /server/models/poolRequests.js
parent5101105ef91bfe478f97546b78b321882da2079c (diff)
downloadPeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.tar.gz
PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.tar.zst
PeerTube-f0f5567b6918fc60c8cab15e13aec03a89a91dfb.zip
Use const/let now we use node 4.2
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,