MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / normalizeLogValue

Function normalizeLogValue

apps/api/src/controllers/webhook.controller.ts:150–151  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

148] as const;
149
150const normalizeLogValue = (value: unknown) =>
151 value instanceof Date ? value.toISOString() : (value ?? null);
152
153// Builds a `{ field: { from, to } }` map of changed columns. `undefined`
154// after-values are skipped — Prisma reads them as "leave the column untouched".

Callers 1

diffOrganizationFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected