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
@ -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()
|
||||
|
||||
@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user