fix(02): fix prisma client in docker, resolve typescript errors

This commit is contained in:
2026-06-19 08:49:23 +02:00
parent 91758a0e44
commit 11949da99a
3 changed files with 5 additions and 2 deletions
@@ -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(
+1 -1
View File
@@ -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,