From 17cde1fd15e78e38b74d5474f3b40d16497e340a Mon Sep 17 00:00:00 2001
From: "DESKTOP-9FO96TP\\hehexd" <davidjakszta@outlook.de>
Date: Thu, 29 Jun 2023 00:09:11 +0200
Subject: [PATCH] potential query fix

---
 app/(content)/(user)/[userid]/followers/page.tsx | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/app/(content)/(user)/[userid]/followers/page.tsx b/app/(content)/(user)/[userid]/followers/page.tsx
index 2f59b81..45f42b1 100644
--- a/app/(content)/(user)/[userid]/followers/page.tsx
+++ b/app/(content)/(user)/[userid]/followers/page.tsx
@@ -23,6 +23,11 @@ export default async function UserFollowers({ params }: { params: { userid: stri
 
     const followers = await db.user.findMany({
         where: {
+            following: {
+                every: {
+                    followerId: { not: undefined }
+                }
+            },
             followers: {
                 every: {
                     followingId: fullUser?.id
-- 
GitLab