This MR fixes critical authentication issues that prevented login on localhost and improves the developer experience with consolidated rebuild scripts and a working help modal keyboard shortcut. #5

Merged
ilia merged 51 commits from dev into main 2026-01-05 19:42:46 -05:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 01480586ff - Show all commits

View File

@ -11,7 +11,7 @@ export interface ActivityLog {
path: string
method: string
ip?: string
details?: Record<string, any>
details?: Record<string, unknown>
}
export function logActivity(
@ -19,7 +19,7 @@ export function logActivity(
path: string,
method: string,
user?: { id: string; email: string; role: string } | null,
details?: Record<string, any>,
details?: Record<string, unknown>,
request?: Request
) {
const timestamp = new Date().toISOString()

View File

@ -60,7 +60,7 @@ function getPrismaClient(): PrismaClient {
export const prisma = new Proxy({} as PrismaClient, {
get(_target, prop) {
const client = getPrismaClient()
const value = (client as any)[prop]
const value = client[prop as keyof PrismaClient]
return typeof value === 'function' ? value.bind(client) : value
}
})