From c825ff8a5f47127fc128a14fa9cb2f3822165c59 Mon Sep 17 00:00:00 2001 From: liuyun Date: Thu, 15 Oct 2026 10:18:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(seed-demo):=20itemSnapshot=20=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=B1=BB=E5=9E=8B=20InputJsonObject=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=20tsc=20=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- prisma/seed-demo.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/seed-demo.ts b/prisma/seed-demo.ts index ba53199..c35d2ba 100644 --- a/prisma/seed-demo.ts +++ b/prisma/seed-demo.ts @@ -1,4 +1,4 @@ -import { PrismaClient } from '@prisma/client'; +import { Prisma, PrismaClient } from '@prisma/client'; import bcrypt from 'bcryptjs'; import { TENANT_ADMIN_ROLE_CODE } from '../src/common/constants.js'; import { initTenant } from '../src/common/tenant-template.js'; @@ -115,7 +115,7 @@ interface SvcRecord { needCert: boolean; } -function itemSnapshot(s: SvcRecord): Record { +function itemSnapshot(s: SvcRecord): Prisma.InputJsonObject { return { svcId: s.svcId, svcName: s.svcName,