Fix build errors: add missing Prisma models/fields and resolve TypeScript type errors
All checks were successful
Build and Push Docker Image / build (push) Successful in 11m24s

Schema: Add 11 new models (RoundTemplate, MentorNote, MentorMilestone,
MentorMilestoneCompletion, EvaluationDiscussion, DiscussionComment,
Message, MessageRecipient, MessageTemplate, Webhook, WebhookDelivery,
DigestLog) and missing fields on existing models (Project.isDraft,
ProjectFile.version, LiveVotingSession.allowAudienceVotes, User.digestFrequency,
AuditLog.sessionId, MentorAssignment.completionStatus, etc).
Add AUDIT_CONFIG/LOCALIZATION/DIGEST/ANALYTICS enum values.

Code: Fix implicit any types, route type casts, enum casts, null safety,
composite key handling, and relation field names across 11 source files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 14:04:02 +01:00
parent 24fdd2f6be
commit 04d0deced1
12 changed files with 383 additions and 51 deletions

View File

@@ -674,7 +674,7 @@ export default function ApplySettingsPage() {
toast.success('Loaded preset: MOPC Classic')
return
}
const template = templates?.find((t) => t.id === value)
const template = templates?.find((t: { id: string; name: string; config: unknown }) => t.id === value)
if (template) {
setConfig(template.config as WizardConfig)
setIsDirty(true)
@@ -692,7 +692,7 @@ export default function ApplySettingsPage() {
</SelectItem>
{templates && templates.length > 0 && (
<>
{templates.map((t) => (
{templates.map((t: { id: string; name: string }) => (
<SelectItem key={t.id} value={t.id}>
{t.name}
</SelectItem>