Skip to content

Commit

Permalink
fix: redirect to wrong piscine page
Browse files Browse the repository at this point in the history
  • Loading branch information
FreekBes authored Jun 30, 2024
1 parent d3f76af commit 53dfe6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const setupUsersRoutes = function(app: Express, prisma: PrismaClient): vo
// Redirect to latest year and month defined in the database
const latest = await getLatestPiscine(prisma);
if (latest) {
return res.redirect(`/piscines/${latest.year_num}/${latest.month_num}`);
return res.redirect(`/users/pisciners/${latest.year_num}/${latest.month_num}`);
}
else {
// No pisciners found, return 404
Expand Down

0 comments on commit 53dfe6b

Please sign in to comment.