MCPcopy Index your code
hub / github.com/CapSoftware/Cap / getAffectedRows

Function getAffectedRows

apps/web/lib/video-processing.ts:13–21  ·  view source on GitHub ↗
(result: unknown)

Source from the content-addressed store, hash-verified

11 | "already-complete";
12
13const getAffectedRows = (result: unknown) => {
14 if (Array.isArray(result)) {
15 return (
16 (result[0] as { affectedRows?: number } | undefined)?.affectedRows ?? 0
17 );
18 }
19
20 return (result as { affectedRows?: number } | undefined)?.affectedRows ?? 0;
21};
22
23export async function setVideoProcessingError(
24 videoId: Video.VideoId,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected