mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-30 19:24:28 -04:00
Fix lint
This commit is contained in:
@@ -105,7 +105,7 @@ export default function ProfilePage() {
|
||||
console.log(images);
|
||||
}
|
||||
} catch
|
||||
(error: Error) {
|
||||
(error: any) {
|
||||
console.error('Error fetching profiles:', error);
|
||||
setError('Error: ' + error.message)
|
||||
} finally {
|
||||
|
||||
@@ -19,7 +19,7 @@ const RATE_LIMITED_PATHS = [
|
||||
|
||||
export async function middleware(request: NextRequest) {
|
||||
const path = request.nextUrl.pathname;
|
||||
const ip = request.ip || request.headers.get('x-forwarded-for')?.split(',')[0]?.trim() || 'anonymous';
|
||||
const ip = request.headers.get('x-forwarded-for')?.split(',')[0]?.trim() || 'anonymous';
|
||||
|
||||
// console.log('middleware', path, ip)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user