© 2026 Hedgehog Software, LLC
PostgresError: column projects.project_id does not exist
const projectsInQueueWithDrizzle = await db.query.projects.findMany({ with: { matches: true, }, extras: ({ id: projectId }) => ({ matchCount: db .$count(matches, eq(matches.projectId, projectId)) .as("matchCount"), }), });