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

Function clearInKnowledgeConnectors

apps/sim/lib/credentials/deletion.ts:225–230  ·  view source on GitHub ↗
(credentialId: string)

Source from the content-addressed store, hash-verified

223}
224
225async function clearInKnowledgeConnectors(credentialId: string): Promise<void> {
226 await db
227 .update(schema.knowledgeConnector)
228 .set({ credentialId: null, updatedAt: new Date() })
229 .where(eq(schema.knowledgeConnector.credentialId, credentialId))
230}
231
232interface ClearResult {
233 value: unknown

Callers 1

clearCredentialRefsFunction · 0.85

Calls 2

setMethod · 0.65
eqFunction · 0.50

Tested by

no test coverage detected