fix: correzione ricerca cliente tramite LDAP. fix: vista dettaglio che interrogava l'endpoint sbagliato. PRovocato probabilmente ancora dall'unificazione delle note rapide con le note normali.
This commit is contained in:
1 parent
0b6907969d
commit
abb72d53c9
3 files changed
+136
-55
No files matched your search
@@ -296,6 +296,12 @@ router.get('/customer-companies/search', async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
// Alias /api/customers/search -> /api/customer-users/search for backwards compatibility
|
||||
router.get('/customers/search', (req, res, next) => {
|
||||
req.url = '/customer-users/search' + (req.url.includes('?') ? req.url.slice(req.url.indexOf('?')) : '');
|
||||
router.handle(req, res, next);
|
||||
});
|
||||
|
||||
// GET /api/customer-users/search — Search customer users (supports LDAP via REST, fallbacks to DB)
|
||||
router.get('/customer-users/search', async (req, res) => {
|
||||
const { q = '', customer_company_id } = req.query;
|
||||
|
||||
Reference in new issue
Block a user