Update appId validation

This commit is contained in:
Ramon Ramirez 2026-01-27 21:49:17 -04:00
parent d65be100cd
commit b047f7b33d
2 changed files with 3 additions and 1 deletions

View File

@ -58,10 +58,12 @@ public class LegalCustomerProductDirectoryService implements LegalCustomerProduc
log.info("Iniciando ejecucion para el cliente: {}", request.getCustomerId());
Response response = null;
LegalCustomerProductDirectoryRequest requestFromAppId = getRequestFromAppId(request);
LegalCustomerProductDirectoryRequest requestFromAppId = request;
long startTime = System.currentTimeMillis();
try {
requestFromAppId = getRequestFromAppId(request);
if(StringUtil.isNullOrEmpty(requestFromAppId.getCustomerId())) {
log.error("Error en el codigo del cliente vacio");
throw HttpStatusCodeException.badRequest("VRN01");