fix(seed-demo): itemSnapshot 返回类型 InputJsonObject,修 tsc 类型错误
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
266ce08dd4
commit
c825ff8a5f
@ -1,4 +1,4 @@
|
|||||||
import { PrismaClient } from '@prisma/client';
|
import { Prisma, PrismaClient } from '@prisma/client';
|
||||||
import bcrypt from 'bcryptjs';
|
import bcrypt from 'bcryptjs';
|
||||||
import { TENANT_ADMIN_ROLE_CODE } from '../src/common/constants.js';
|
import { TENANT_ADMIN_ROLE_CODE } from '../src/common/constants.js';
|
||||||
import { initTenant } from '../src/common/tenant-template.js';
|
import { initTenant } from '../src/common/tenant-template.js';
|
||||||
@ -115,7 +115,7 @@ interface SvcRecord {
|
|||||||
needCert: boolean;
|
needCert: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
function itemSnapshot(s: SvcRecord): Record<string, unknown> {
|
function itemSnapshot(s: SvcRecord): Prisma.InputJsonObject {
|
||||||
return {
|
return {
|
||||||
svcId: s.svcId,
|
svcId: s.svcId,
|
||||||
svcName: s.svcName,
|
svcName: s.svcName,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user