Fixed reports.

This commit is contained in:
Mike Cao 2025-02-01 16:20:22 -08:00
parent 3e9cb66db2
commit 530d6fb323
12 changed files with 59 additions and 33 deletions

View file

@ -5,11 +5,7 @@ import { parseRequest } from 'lib/request';
import { deleteTeam, getTeam, updateTeam } from 'queries';
export async function GET(request: Request, { params }: { params: Promise<{ teamId: string }> }) {
const schema = z.object({
teamId: z.string().uuid(),
});
const { auth, error } = await parseRequest(request, schema);
const { auth, error } = await parseRequest(request);
if (error) {
return error();