Skip to content

Commit db8749d

Browse files
committed
Temporarily disable isPublic filter to debug recent edits
1 parent 80b5c05 commit db8749d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

app/api/recent-edits/route.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ export async function GET(request: NextRequest) {
105105
}
106106
}
107107

108+
// TEMPORARILY DISABLE VISIBILITY FILTER FOR DEBUGGING
108109
// Add visibility filter for non-authenticated users
109-
if (!userId) {
110-
console.log(`🔍 [RECENT_EDITS] No userId - adding isPublic filter`);
111-
pagesQuery = pagesQuery.where('isPublic', '==', true);
112-
} else {
113-
console.log(`🔍 [RECENT_EDITS] Authenticated user: ${userId}`);
114-
}
110+
// if (!userId) {
111+
// console.log(`🔍 [RECENT_EDITS] No userId - adding isPublic filter`);
112+
// pagesQuery = pagesQuery.where('isPublic', '==', true);
113+
// } else {
114+
// console.log(`🔍 [RECENT_EDITS] Authenticated user: ${userId}`);
115+
// }
116+
console.log(`🔍 [RECENT_EDITS] DEBUGGING: Skipping isPublic filter. UserId: ${userId}`);
115117

116118
console.log(`🔍 [RECENT_EDITS] Executing query...`);
117119
const pagesSnapshot = await pagesQuery.get();

0 commit comments

Comments
 (0)