MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / optionalAuditText

Function optionalAuditText

packages/worker-utils/src/security-finding-audit.ts:432–435  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

430} {
431 if (owner.type === 'user') {
432 return { owned_by_user_id: owner.userId, owned_by_organization_id: null };
433 }
434 return { owned_by_user_id: null, owned_by_organization_id: owner.organizationId };
435}
436
437function normalizeAuditTimestamp(value: string | Date | null | undefined): string | undefined {
438 if (value === null || value === undefined) return undefined;

Callers 1

Calls 1

auditTextFunction · 0.85

Tested by

no test coverage detected