fix(02): fix prisma client in docker, resolve typescript errors
This commit is contained in:
@@ -9,7 +9,7 @@ import { PrismaClient } from '@prisma/client';
|
||||
export function forTenant(prisma: PrismaClient, tenantId: string) {
|
||||
return prisma.$extends({
|
||||
query: {
|
||||
$allOperations({ args, query }) {
|
||||
$allOperations({ args, query }: { args: any; query: (args: any) => any }) {
|
||||
return (prisma as any).$transaction(async (tx: any) => {
|
||||
// Use parameterized query to avoid SQL injection
|
||||
await tx.$executeRawUnsafe(
|
||||
|
||||
@@ -46,7 +46,7 @@ export class TenantController {
|
||||
orderBy: { name: 'asc' },
|
||||
});
|
||||
|
||||
return tenants.map((t) => ({
|
||||
return tenants.map((t: any) => ({
|
||||
id: t.id,
|
||||
name: t.name,
|
||||
slug: t.slug,
|
||||
|
||||
Reference in New Issue
Block a user