@konplit-services/common 1.0.214 → 1.0.215
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.
|
@@ -16,6 +16,7 @@ const constants_1 = require("../redis/constants");
|
|
|
16
16
|
const notAuthorized_1 = require("../errors/notAuthorized");
|
|
17
17
|
const language_1 = require("../helper/lang/language");
|
|
18
18
|
const error_codes_1 = require("../helper/errorCodes/error-codes");
|
|
19
|
+
const app_configs_1 = require("../app.configs");
|
|
19
20
|
const currentUser = (req, res, next) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
21
|
if (!req.headers["authorization"])
|
|
21
22
|
return next();
|
|
@@ -34,7 +35,9 @@ const currentUser = (req, res, next) => __awaiter(void 0, void 0, void 0, functi
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
catch (error) {
|
|
37
|
-
|
|
38
|
+
if (app_configs_1.appConfigs.getNODE_ENV() !== "production") {
|
|
39
|
+
console.log(error);
|
|
40
|
+
}
|
|
38
41
|
}
|
|
39
42
|
next();
|
|
40
43
|
});
|