- fatta ottimizzazione della funzione addExtraInfo, chiamando parallelamente tutte le promise...

This commit is contained in:
Surya Paolo
2025-03-13 12:48:23 +01:00
parent 0017f04e45
commit f32bd189dc
4 changed files with 136 additions and 92 deletions

View File

@@ -187,7 +187,7 @@ const authenticate_noerror_WithUser = async (req, res, next) => {
try {
const token = req.header('x-auth');
const refreshToken = req.header('x-refrtok');
console.log(' ### Authenticate_noerror: token', !!token);
console.log(' ### authenticate_noerror_WithUser: token', !!token);
if (!token) {
req.user = null;
@@ -229,7 +229,7 @@ const authenticate_noerror_WithUserLean = async (req, res, next) => {
try {
const token = req.header('x-auth');
const refreshToken = req.header('x-refrtok');
console.log(' ### Authenticate_noerror: token', !!token);
console.log(' ### authenticate_noerror_WithUserLean: token', !!token);
if (!token) {
req.user = null;