Skip to content

Commit b24f8c3

Browse files
committed
Few fixes for build
Few fixes for build
1 parent d840ab8 commit b24f8c3

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

lib/api/veeam-client.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)