Switch to async/await
This commit is contained in:
parent
87459b2acc
commit
18021e0ef8
10 changed files with 53 additions and 8837 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue