File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/org/airpenthouse/GoTel Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11package org .airpenthouse .GoTel .services .country ;
22
33import org .airpenthouse .GoTel .dtos .countries .MembershipCountriesRequest ;
4+ import org .airpenthouse .GoTel .util .CountApiUsers ;
45import org .airpenthouse .GoTel .util .dto .binder .CountriesRequestCombiner ;
56import org .airpenthouse .GoTel .util .executors .CountriesExecutors ;
67import org .airpenthouse .GoTel .util .mappers .CountriesMapper ;
@@ -25,6 +26,9 @@ private Set<? extends CountriesRequestCombiner> getAllCountries() {
2526 }
2627
2728 private Set <? extends CountriesRequestCombiner > getRequest () {
29+ var count = new CountApiUsers ();
30+
31+ count .updateWorldCountriesCount ();
2832 if (checkMemberShipStatusAndTokenMatch ())
2933 return initializeCountriesEntity ().stream ().map (mapper ::mapToMembershipCountryRequest ).collect (Collectors .toSet ());
3034 else
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ private ExecutorService determineNoThreadToUse() {
4141 private Set <CountriesEntity > executeCountriesEntity () {
4242 try {
4343 var set = this .implCountriesEntityExecution ();
44- super . updateWorldCountriesCount ();
44+
4545 return set ;
4646 } catch (ExecutionException | TimeoutException | InterruptedException | NullPointerException e ) {
4747 throw new RuntimeException ("Error occurred :" + e .getMessage ());
You can’t perform that action at this time.
0 commit comments