Skip to content

Commit

Permalink
await nulling
Browse files Browse the repository at this point in the history
  • Loading branch information
dispherical committed Jul 11, 2024
1 parent a8f2b99 commit 41374ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Array.prototype.random = function () {
.connect();
receiver.router.get('/:id', async (req, res) => {
const { id } = req.params
if (!client.exists(`url.${id}`)) res.send("Sorry, this URL does not exist. If you're following an emoji link, it is no longer valid.")
if (!await client.exists(`url.${id}`)) res.send("Sorry, this URL does not exist. If you're following an emoji link, it is no longer valid.")
else res.redirect(302, await client.get(`url.${id}`))
});
// Load commands
Expand Down

0 comments on commit 41374ed

Please sign in to comment.