Bug fix
This commit is contained in:
parent
5dfbf9ec47
commit
db90b8b8e3
1 changed files with 3 additions and 3 deletions
|
|
@ -149,8 +149,8 @@ module.exports = async (
|
|||
|
||||
const lastSeenMiddleware = (req, res, next) => {
|
||||
const { authorization } = req.headers
|
||||
const {path} = req
|
||||
if (!nonEncryptedRoutes.includes(path) && authorization) {
|
||||
const { path, method } = req
|
||||
if (!unprotectedRoutes[method][path] && authorization && GunDB.isAuthenticated()) {
|
||||
GunActions.setLastSeenApp()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue