chore: 清理类型检查与控制器无效依赖

This commit is contained in:
que01 committed 2026-09-21 12:08:54 +08:00
1 parent 6edb9d7a30
commit 6f2cc51985
4 files changed
+6 -25

No files matched your search

+4 -4
View File
@@ -22,7 +22,7 @@ export class TemplateWorkspaceService {
brandId,
templateKey,
templateVersion: template.version,
configSnapshot: template as unknown as Prisma.InputJsonValue,
configSnapshot: template,
},
});
await tx.brandModule.createMany({
@@ -129,7 +129,7 @@ export class TemplateWorkspaceService {
previousSnapshots: [
...history,
installation.configSnapshot,
] as unknown as Prisma.InputJsonValue,
],
},
});
return { installation: updated, addedModules, addedFields };
@@ -149,8 +149,8 @@ export class TemplateWorkspaceService {
where: { id: installation.id },
data: {
templateVersion: version,
configSnapshot: previous as Prisma.InputJsonValue,
previousSnapshots: history.slice(0, -1) as Prisma.InputJsonValue,
configSnapshot: previous,
previousSnapshots: history.slice(0, -1),
},
});
return {