Migrated the shortener.ts server
This commit is contained in:
parent
4a2155c88f
commit
0482997ec1
@ -14,7 +14,7 @@ app.get("*", async (req: Request, res: Response) => {
|
||||
redirect_url = found.originalUrl;
|
||||
|
||||
// Increment clicks
|
||||
await found.updateOne({$inc: {clicks: 1}}).exec();
|
||||
await found.increment({clicks: +1});
|
||||
}
|
||||
|
||||
// Redirect to url
|
||||
|
Loading…
x
Reference in New Issue
Block a user