Skip to content

Commit

Permalink
fix(user): Remove admin cache when user logout.
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkinStars committed Mar 1, 2023
1 parent 1de3ec2 commit cd742b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/controller/user_controller.go
Expand Up @@ -203,6 +203,7 @@ func (uc *UserController) UserLogout(ctx *gin.Context) {
return
}
_ = uc.authService.RemoveUserCacheInfo(ctx, accessToken)
_ = uc.authService.RemoveAdminUserCacheInfo(ctx, accessToken)
handler.HandleResponse(ctx, nil, nil)
}

Expand Down

0 comments on commit cd742b7

Please sign in to comment.