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