diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-01 18:47:57 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-01 18:47:57 +0100 |
commit | 4b08096b2c58f801e5aad19e38d24ec59dd3e14e (patch) | |
tree | 914bc9704c3f32e4366a518369be33b512b56256 /server/initializers/migrations | |
parent | bf2fc85c834f5be016f119f59844e49fe3751e6a (diff) | |
download | PeerTube-4b08096b2c58f801e5aad19e38d24ec59dd3e14e.tar.gz PeerTube-4b08096b2c58f801e5aad19e38d24ec59dd3e14e.tar.zst PeerTube-4b08096b2c58f801e5aad19e38d24ec59dd3e14e.zip |
Server: add endpoint in requests
Diffstat (limited to 'server/initializers/migrations')
-rw-r--r-- | server/initializers/migrations/0020-requests-endpoint.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/initializers/migrations/0020-requests-endpoint.js b/server/initializers/migrations/0020-requests-endpoint.js new file mode 100644 index 000000000..55feec571 --- /dev/null +++ b/server/initializers/migrations/0020-requests-endpoint.js | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | Set the endpoint videos for requests. | ||
3 | */ | ||
4 | |||
5 | const mongoose = require('mongoose') | ||
6 | |||
7 | const Request = mongoose.model('Request') | ||
8 | |||
9 | exports.up = function (callback) { | ||
10 | Request.update({ }, { endpoint: 'videos' }, callback) | ||
11 | } | ||
12 | |||
13 | exports.down = function (callback) { | ||
14 | throw new Error('Not implemented.') | ||
15 | } | ||