Skip to content

Commit b555539

Browse files
author
lucifer
committed
log
1 parent 91014b5 commit b555539

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routes/users.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ router.get("/api/v1/user", async (ctx) => {
4343
if (token) {
4444
const duserStr = decrypt(token);
4545
if (duserStr) {
46-
const duser = JSON.parse(duserStr);
4746
console.log(duserStr);
47+
const duser = JSON.parse(duserStr);
48+
4849
if (db.find((q) => q.login === duser.login)) {
4950
ctx.body = duser;
5051
return;

0 commit comments

Comments
 (0)