@wrcb/cb-common 1.0.31 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,7 @@ const currentUser = (req, res, next) => {
|
|
|
9
9
|
var _a;
|
|
10
10
|
// vamos apenas descobrir se o usuario esta logado. se estiver, vamos extrair o payload
|
|
11
11
|
// e setar no currentUser property
|
|
12
|
-
// se não tiver logado, outro middleware irá retornar um erro
|
|
12
|
+
// se não tiver logado, outro middleware irá retornar um erro.
|
|
13
13
|
if (!((_a = req.session) === null || _a === void 0 ? void 0 : _a.jwt)) {
|
|
14
14
|
return next();
|
|
15
15
|
}
|