Switch to async/await

This commit is contained in:
Jonathan Cremin 2018-04-14 00:18:48 +01:00
parent 87459b2acc
commit 18021e0ef8
10 changed files with 53 additions and 8837 deletions

View file

@ -20,7 +20,7 @@ export default async function (ctx) {
ctx.assert(url.host, 400, { error: { message: 'You need to submit a url.' } });
const music = await lookup(ctx.request.body.url);
debug(music);
ctx.assert(music, 400, { error: { message: 'No supported music found at that link :(' } });
let share = await find(music);