File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ import {
4242 ProxyStatesResult ,
4343 VeeamInventoryItem ,
4444 InventoryResult ,
45- InventoryFilter ,
4645 VeeamBackupObject ,
4746 BackupObjectsResult
4847} from '@/lib/types/veeam' ;
@@ -986,10 +985,18 @@ class VeeamApiClient {
986985 }
987986
988987 // Helper for VBM Items
989- const processVbmItems = ( res : PromiseSettledResult < { results ?: any [ ] } > , type : string ) => {
988+ interface VBMItem {
989+ id : string ;
990+ name ?: string ;
991+ displayName ?: string ;
992+ url ?: string ;
993+ email ?: string ;
994+ description ?: string ;
995+ }
996+ const processVbmItems = ( res : PromiseSettledResult < { results ?: VBMItem [ ] } > , type : string ) => {
990997 if ( res . status === 'fulfilled' ) {
991998 const items = res . value . results || [ ] ;
992- items . forEach ( ( item : any ) => {
999+ items . forEach ( ( item ) => {
9931000 const displayName = item . displayName || item . name || item . url || '' ;
9941001 const searchTerms = [
9951002 displayName ,
You can’t perform that action at this time.
0 commit comments