PeerTube/server/initializers/migrations/0020-requests-endpoint.js

16 lines
299 B
JavaScript
Raw Normal View History

2016-11-01 18:47:57 +01:00
/*
Set the endpoint videos for requests.
*/
const mongoose = require('mongoose')
const Request = mongoose.model('Request')
exports.up = function (callback) {
Request.update({ }, { endpoint: 'videos' }, callback)
}
exports.down = function (callback) {
throw new Error('Not implemented.')
}