This commit is contained in:
emad-salah 2020-04-18 20:29:45 +01:00
parent 5dfbf9ec47
commit db90b8b8e3

View file

@ -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()
}
}