fix(federation): use null fallback for audit log FK cols when token row missing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -256,8 +256,8 @@ export class EnrollmentService {
|
||||
.insert(federationAuditLog)
|
||||
.values({
|
||||
requestId: crypto.randomUUID(),
|
||||
peerId: row?.peerId ?? 'unknown',
|
||||
grantId: row?.grantId ?? 'unknown',
|
||||
peerId: row?.peerId ?? null,
|
||||
grantId: row?.grantId ?? null,
|
||||
verb: 'enrollment',
|
||||
resource: 'federation_grant',
|
||||
statusCode:
|
||||
|
||||
Reference in New Issue
Block a user