FUCK
This commit is contained in:
parent
501768a31d
commit
1b747886b2
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -29,7 +29,7 @@ app.get("/*/status/*", async (req, res) => {
|
||||||
twitter_res = await fetch(target);
|
twitter_res = await fetch(target);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return res
|
return res
|
||||||
.status(502)
|
.status(500)
|
||||||
.send("Error from Twitter API: " + format("%s", err));
|
.send("Error from Twitter API: " + format("%s", err));
|
||||||
}
|
}
|
||||||
if (twitter_res.status == 200) {
|
if (twitter_res.status == 200) {
|
||||||
|
@ -38,7 +38,7 @@ app.get("/*/status/*", async (req, res) => {
|
||||||
body = await twitter_res.json();
|
body = await twitter_res.json();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return res
|
return res
|
||||||
.status(502)
|
.status(500)
|
||||||
.send("Error from Twitter API: " + format("%s", err));
|
.send("Error from Twitter API: " + format("%s", err));
|
||||||
}
|
}
|
||||||
let html = parse(body.html);
|
let html = parse(body.html);
|
||||||
|
|
Loading…
Reference in a new issue