refactor: Add explicit types for workspace and project member checks

This commit is contained in:
Yusuf İpek
2026-02-07 17:28:46 +03:00
parent d01c2247b5
commit 49c3ac61ea
7 changed files with 9 additions and 8 deletions
+3 -3
View File
@@ -45,7 +45,7 @@ export async function collectVideoVoiceUrls(videoId: string): Promise<string[]>
},
select: { voiceUrl: true },
});
return comments.map((c) => c.voiceUrl).filter(Boolean) as string[];
return comments.map((c: { voiceUrl: string | null }) => c.voiceUrl).filter(Boolean) as string[];
}
/**
@@ -59,7 +59,7 @@ export async function collectProjectVoiceUrls(projectId: string): Promise<string
},
select: { voiceUrl: true },
});
return comments.map((c) => c.voiceUrl).filter(Boolean) as string[];
return comments.map((c: { voiceUrl: string | null }) => c.voiceUrl).filter(Boolean) as string[];
}
/**
@@ -73,7 +73,7 @@ export async function collectWorkspaceVoiceUrls(workspaceId: string): Promise<st
},
select: { voiceUrl: true },
});
return comments.map((c) => c.voiceUrl).filter(Boolean) as string[];
return comments.map((c: { voiceUrl: string | null }) => c.voiceUrl).filter(Boolean) as string[];
}
/**