Skip to content

Commit

Permalink
fix(lib): use findOne to get users me
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 8, 2020
1 parent 19e3651 commit 50ca41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Strapi extends Hookable {
this.$http.setToken(jwt, 'Bearer')

try {
const user = await this.getEntry('users', 'me')
const user = await this.findOne('users', 'me')
this.setUser(user)
} catch (e) {
this.clearToken()
Expand Down

0 comments on commit 50ca41c

Please sign in to comment.