mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Use const/let now we use node 4.2
This commit is contained in:
parent
5101105ef9
commit
f0f5567b69
36 changed files with 424 additions and 432 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue