MCPcopy Index your code
hub / github.com/simstudioai/sim / recordKnowledgeBaseFileOwnership

Function recordKnowledgeBaseFileOwnership

apps/sim/lib/uploads/server/metadata.ts:258–262  ·  view source on GitHub ↗
(
  ownership: KnowledgeBaseFileOwnership
)

Source from the content-addressed store, hash-verified

256 * paths — keep all callers routed through here so they cannot drift.
257 */
258export async function recordKnowledgeBaseFileOwnership(
259 ownership: KnowledgeBaseFileOwnership
260): Promise<void> {
261 await insertFileMetadata({ ...ownership, context: 'knowledge-base' })
262}
263
264/**
265 * Bulk variant of {@link recordKnowledgeBaseFileOwnership} for batch upload flows.

Callers 2

route.tsFile · 0.90

Calls 1

insertFileMetadataFunction · 0.85

Tested by

no test coverage detected