chore: move auditLog backend to proper DI

This commit is contained in:
jubnl
2026-07-27 22:09:08 +02:00
parent 1d56de3897
commit 6ff936c613
59 changed files with 1077 additions and 658 deletions
@@ -8,7 +8,7 @@ import type { MemoriesService } from '../../../src/nest/memories/memories.servic
import type { User } from '../../../src/types';
const { getClientIp } = vi.hoisted(() => ({ getClientIp: vi.fn(() => '1.2.3.4') }));
vi.mock('../../../src/services/auditLog', () => ({ getClientIp }));
vi.mock('../../../src/nest/audit/client-ip', () => ({ getClientIp }));
const user = { id: 7, role: 'user', email: 'u@example.test' } as User;