Skip to content

Commit

Permalink
revert group schema back to date to fit input (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Buffett111 authored Dec 25, 2024
1 parent cf58cb2 commit bd106a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/createTestStudent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function createTestStudents() {
concept: null,
discussions: [],
summary: null,
updatedAt: Timestamp.now(),
updatedAt: null,
keywords: {} as Record<string, number>
}));

Expand Down
3 changes: 1 addition & 2 deletions src/lib/schema/group.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { z } from 'zod';
import { Timestamp } from './utils';

export const route = (session: string, group: string) => `/sessions/${session}/groups/${group}`;

Expand All @@ -15,7 +14,7 @@ export const GroupSchema = z.object({
audio: z.string().nullable() // to find the raw file
})
),
updatedAt: Timestamp,
updatedAt: z.date().nullable(),
status: z.enum(['discussion', 'summarize', 'end']).default('discussion'),
summary: z.string().nullable(), // lock on stage 2 finalize transaction
keywords: z.record(z.string(), z.number().min(1).max(5))
Expand Down

0 comments on commit bd106a8

Please sign in to comment.