File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed 
api/src/unraid-api/graph/resolvers/disks Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 11import  {  Inject ,  Injectable ,  NotFoundException  }  from  '@nestjs/common' ; 
2- import  {  Store  }  from  '@reduxjs/toolkit' ; 
32import  {  join  }  from  'path' ; 
43
54import  type  {  Systeminformation  }  from  'systeminformation' ; 
5+ import  {  Store  }  from  '@reduxjs/toolkit' ; 
66import  {  execa  }  from  'execa' ; 
77import  {  blockDevices ,  diskLayout  }  from  'systeminformation' ; 
88
9+ import  type  {  IniSlot  }  from  '@app/store/state-parsers/slots.js' ; 
10+ import  {  toBoolean  }  from  '@app/core/utils/index.js' ; 
11+ import  {  parseConfig  }  from  '@app/core/utils/misc/parse-config.js' ; 
912import  { 
1013    Disk , 
1114    DiskFsType , 
1215    DiskInterfaceType , 
1316    DiskSmartStatus , 
1417}  from  '@app/unraid-api/graph/resolvers/disks/disks.model.js' ; 
1518import  {  batchProcess  }  from  '@app/utils.js' ; 
16- import  {  parseConfig  }  from  '@app/core/utils/misc/parse-config.js' ; 
17- import  type  {  IniSlot  }  from  '@app/store/state-parsers/slots.js' ; 
18- import  {  toBoolean  }  from  '@app/core/utils/index.js' ; 
1919
2020@Injectable ( ) 
2121export  class  DisksService  { 
@@ -132,9 +132,7 @@ export class DisksService {
132132                mappedInterfaceType  =  DiskInterfaceType . UNKNOWN ; 
133133        } 
134134
135-         const  diskIni  =  Object . values ( disksIni ) . find ( 
136-             ( d )  =>  d . id . trim ( )  ===  disk . serialNum . trim ( ) 
137-         ) ; 
135+         const  diskIni  =  Object . values ( disksIni ) . find ( ( d )  =>  d . id . trim ( )  ===  disk . serialNum . trim ( ) ) ; 
138136
139137        return  { 
140138            ...disk , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments