File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed 
src/main/java/org/baas/baascore Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class AccountInitResponse {
2323    private  LocalDate  createdAt ;
2424    private  LocalDate  updatedAt ;
2525
26-     public  static  AccountInitResponse  from (Account  account , int  index ) {
26+     public  static  AccountInitResponse  of (Account  account , int  index ) {
2727        return  AccountInitResponse .builder ()
2828                .index (index )
2929                .customerName (account .getCustomer ().getName ())
Original file line number Diff line number Diff line change 2121import  java .util .Random ;
2222import  java .util .UUID ;
2323import  java .util .concurrent .atomic .AtomicInteger ;
24- import  java .util .stream .Collectors ;
2524import  java .util .stream .IntStream ;
2625
2726@ Service 
@@ -192,7 +191,7 @@ public AccountsInfoResponse findAccountInfo(MemberInitRequest memberInitRequest)
192191
193192        AtomicInteger  index  = new  AtomicInteger (1 );
194193        List <AccountInitResponse > accountInfoList  = accountRepository .findByCustomerId (customer .getId ()).stream ()
195-                 .map (account  -> AccountInitResponse .from (account , index .getAndIncrement ()))
194+                 .map (account  -> AccountInitResponse .of (account , index .getAndIncrement ()))
196195                .toList ();
197196
198197        return  new  AccountsInfoResponse (accountInfoList .size (), accountInfoList );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments