mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
refactor: Add explicit types for workspace and project member checks
This commit is contained in:
+3
-3
@@ -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[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user