Skip to content

Commit

Permalink
fix: don't require user for city emissions results
Browse files Browse the repository at this point in the history
  • Loading branch information
evanp committed Dec 16, 2024
1 parent dc6510f commit 2f14edf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/src/app/api/v0/user/cities/[id]/results/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import { getEmissionResultsBatch } from "@/backend/ResultsService";

export const GET = apiHandler(async (_req: NextRequest, context) => {
const { id } = context.params;
if (!context.session) {
throw new createHttpError.Unauthorized("Unauthorized");
}

const city = await db.models.City.findOne({
where: {
Expand Down

0 comments on commit 2f14edf

Please sign in to comment.