Commit 2c2c4894 authored by Marvin Scholz's avatar Marvin Scholz

Change deprecated API call

parent 5c55f359
......@@ -20,7 +20,7 @@ function index(req, res) {
var json = 0;
streamsFindBy(format, genre, q, order, limit, starting_after, ending_before, last_listener_count, json, function(err, rows) {
if (err) {
res.send(503);
res.sendStatus(503);
} else {
var error;
if (rows.length === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment