From 2df82d42cb57783cd90ccfc11fc8ffe4b95ebb70 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 18 Mar 2016 16:28:09 +0100 Subject: Change api output for videos --- server/lib/videos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/lib/videos.js') 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 = { seedAllExisting: seedAllExisting } -function getVideoState (video, callback) { +function getVideoState (video) { const exist = (video !== null) let owned = false if (exist === true) { owned = (video.namePath !== null) } - return callback({ exist: exist, owned: owned }) + return { exist: exist, owned: owned } } function seed (path, callback) { -- cgit v1.2.3