feat: harden platform workflows and UI governance

This commit is contained in:
hectorzhao
2026-07-22 14:14:55 +08:00
parent ef957f7daa
commit 0f223f7f91
80 changed files with 4958 additions and 764 deletions
+13
View File
@@ -0,0 +1,13 @@
import { PrismaService } from './prisma.service';
describe('PrismaService', () => {
it('keeps the operation log delegate configurable for transaction client proxies', async () => {
const prisma = new PrismaService();
expect(Object.getOwnPropertyDescriptor(prisma, 'operationLog')).toEqual(
expect.objectContaining({ configurable: true }),
);
await prisma.$disconnect();
});
});
+1
View File
@@ -29,6 +29,7 @@ export class PrismaService extends PrismaClient implements OnModuleDestroy {
return typeof value === 'function' ? value.bind(target) : value;
},
}),
configurable: true,
});
}