Skip to content

Commit 568bffe

Browse files
committed
fix send an array on getMe request
1 parent a016131 commit 568bffe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/handlers/users.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ function CreateUserHandler (db) {
1010
return
1111
}
1212

13-
const userResponse = { ...user }
13+
const userResponse = {
14+
...user,
15+
apiKey: user.apiKey[user.apiKey.length - 1]
16+
}
1417

1518
delete userResponse.password
1619
ctx.status = 200

0 commit comments

Comments
 (0)