dev email send when tokens not found
Test Workflow / test (push) Successful in 2s

This commit is contained in:
vladp
2026-03-30 12:29:53 +07:00
parent 7e1877ffc3
commit dbef82d896
@@ -99,8 +99,9 @@ public class GlobalSearchAsyncProcessor {
emailService.sendTokensNotFoundEmail(user, currentTokens, TariffConstants.TOKEN_VALUE_FOR_SEARCH); emailService.sendTokensNotFoundEmail(user, currentTokens, TariffConstants.TOKEN_VALUE_FOR_SEARCH);
result.setFileStatus(SearchStatus.FAILED.name()); result.setFileStatus(SearchStatus.FAILED.name());
globalSearchResultRepository.save(result);
return globalSearchResultRepository.save(result); throw new TariffNotFoundException("Tariff not found");
} }
result = globalSearchResultRepository.save(result); result = globalSearchResultRepository.save(result);