From f0f5567b6918fc60c8cab15e13aec03a89a91dfb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Mar 2016 22:29:27 +0100 Subject: Use const/let now we use node 4.2 --- server/models/poolRequests.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/models/poolRequests.js') 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 @@ 'use strict' -var mongoose = require('mongoose') +const mongoose = require('mongoose') -var logger = require('../helpers/logger') +const logger = require('../helpers/logger') // --------------------------------------------------------------------------- -var poolRequestsSchema = mongoose.Schema({ +const poolRequestsSchema = mongoose.Schema({ type: String, id: String, // Special id to find duplicates (video created we want to remove...) request: mongoose.Schema.Types.Mixed }) -var PoolRequestsDB = mongoose.model('poolRequests', poolRequestsSchema) +const PoolRequestsDB = mongoose.model('poolRequests', poolRequestsSchema) // --------------------------------------------------------------------------- -var PoolRequests = { +const PoolRequests = { create: create, findById: findById, list: list, -- cgit v1.2.3