From e0cc2915f22fe74d5be9e8f51d6b73437192e0ba Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Thu, 6 Nov 2025 04:10:55 +0900
Subject: feat: Support multi-user

---
 backend/db/queries/feeds.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'backend/db/queries/feeds.sql')

diff --git a/backend/db/queries/feeds.sql b/backend/db/queries/feeds.sql
index 9725252..acf36d2 100644
--- a/backend/db/queries/feeds.sql
+++ b/backend/db/queries/feeds.sql
@@ -6,7 +6,7 @@ WHERE id = ?;
 -- name: GetFeeds :many
 SELECT id, url, title, fetched_at, is_subscribed, user_id
 FROM feeds
-WHERE is_subscribed = 1
+WHERE is_subscribed = 1 AND user_id = ?
 ORDER BY id;
 
 -- name: CreateFeed :one
@@ -26,7 +26,7 @@ WHERE id = ?;
 -- name: GetFeedByURL :one
 SELECT id, url, title, fetched_at, is_subscribed, user_id
 FROM feeds
-WHERE url = ?;
+WHERE url = ? AND user_id = ?;
 
 -- name: GetFeedsToFetch :many
 SELECT id, url, fetched_at, user_id
-- 
cgit v1.2.3-70-g09d2

