We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f3804 commit 1c99578Copy full SHA for 1c99578
1 file changed
apps/backend/src/routes/public.ts
@@ -30,7 +30,7 @@ export async function publicRoutes(app: FastifyInstance): Promise<void> {
30
31
const visited = new Set<string>();
32
33
- while (redirect && redirect.createdAt >= ninetyDaysAgo && !visited.has(current)) {
+ while (redirect && redirect.createdAt >= ninetyDaysAgo && !visited.has(redirect.newUsername)) {
34
visited.add(current);
35
current = redirect.newUsername;
36
redirect = await app.prisma.usernameRedirect.findUnique({
0 commit comments