MCPcopy
hub / github.com/CapSoftware/Cap / getAffectedRows

Function getAffectedRows

apps/web/lib/transcribe.ts:17–25  ·  view source on GitHub ↗
(result: unknown)

Source from the content-addressed store, hash-verified

15 "Transcription already completed, in progress, or awaiting manual retry";
16
17const getAffectedRows = (result: unknown) => {
18 if (Array.isArray(result)) {
19 return (
20 (result[0] as { affectedRows?: number } | undefined)?.affectedRows ?? 0
21 );
22 }
23
24 return (result as { affectedRows?: number } | undefined)?.affectedRows ?? 0;
25};
26
27export async function transcribeVideo(
28 videoId: Video.VideoId,

Callers 1

transcribeVideoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected