Client features #22

Merged
KevinMidboe merged 12 commits from client_features into master 2017-09-07 21:56:03 +00:00
Showing only changes of commit 7a1f709d90 - Show all commits

View File

@@ -14,7 +14,7 @@ function searchMoviesController(req, res) {
Promise.resolve()
.then(() => tmdb.search(query, page, type))
.then((movies) => {
if (movies.length > 0) {
if (movies !== undefined || movies.length > 0) {
res.send(movies);
} else {
res.status(404).send({ success: false, error: 'Search query did not return any results.'})