diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-03-18 16:28:09 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-03-18 16:28:09 +0100 |
commit | 2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70 (patch) | |
tree | 9c177f135a121ee34ed2e4f529dd2cacc3ad3f87 /server/lib | |
parent | f0f5567b6918fc60c8cab15e13aec03a89a91dfb (diff) | |
download | PeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.tar.gz PeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.tar.zst PeerTube-2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70.zip |
Change api output for videos
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/videos.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/videos.js b/server/lib/videos.js index eb3a0125a..24178561d 100644 --- a/server/lib/videos.js +++ b/server/lib/videos.js | |||
@@ -16,14 +16,14 @@ const videos = { | |||
16 | seedAllExisting: seedAllExisting | 16 | seedAllExisting: seedAllExisting |
17 | } | 17 | } |
18 | 18 | ||
19 | function getVideoState (video, callback) { | 19 | function getVideoState (video) { |
20 | const exist = (video !== null) | 20 | const exist = (video !== null) |
21 | let owned = false | 21 | let owned = false |
22 | if (exist === true) { | 22 | if (exist === true) { |
23 | owned = (video.namePath !== null) | 23 | owned = (video.namePath !== null) |
24 | } | 24 | } |
25 | 25 | ||
26 | return callback({ exist: exist, owned: owned }) | 26 | return { exist: exist, owned: owned } |
27 | } | 27 | } |
28 | 28 | ||
29 | function seed (path, callback) { | 29 | function seed (path, callback) { |