Skip to content

Commit 50ca41c

Browse files
committed
fix(lib): use findOne to get users me
1 parent 19e3651 commit 50ca41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Strapi extends Hookable {
8585
this.$http.setToken(jwt, 'Bearer')
8686

8787
try {
88-
const user = await this.getEntry('users', 'me')
88+
const user = await this.findOne('users', 'me')
8989
this.setUser(user)
9090
} catch (e) {
9191
this.clearToken()

0 commit comments

Comments
 (0)