Skip to content

Commit 316b2ac

Browse files
author
lucifer
committed
fix: typo
1 parent 0292d3e commit 316b2ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ router.get("/api/v1/user", async (ctx) => {
3434
Authorization: `token ${access_token}`,
3535
},
3636
}).then((res) => res.json());
37-
if (db.find((q) => q.login === login)) {
37+
if (db.find((q) => q.login === user.login)) {
3838
ctx.body = {
3939
...user,
4040
pay: true,

0 commit comments

Comments
 (0)