aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/trpc')
-rw-r--r--packages/trpc/routers/bookmarks.test.ts6
-rw-r--r--packages/trpc/routers/feeds.ts2
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/trpc/routers/bookmarks.test.ts b/packages/trpc/routers/bookmarks.test.ts
index e2179542..575b4d9a 100644
--- a/packages/trpc/routers/bookmarks.test.ts
+++ b/packages/trpc/routers/bookmarks.test.ts
@@ -25,7 +25,11 @@ describe("Bookmark Routes", () => {
feedUrl: string,
) {
// Create an RSS feed and return its ID
- const feed = await api.feeds.create({ name: feedName, url: feedUrl });
+ const feed = await api.feeds.create({
+ name: feedName,
+ url: feedUrl,
+ enabled: true,
+ });
return feed.id;
}
diff --git a/packages/trpc/routers/feeds.ts b/packages/trpc/routers/feeds.ts
index 819ba8ef..07c48f0a 100644
--- a/packages/trpc/routers/feeds.ts
+++ b/packages/trpc/routers/feeds.ts
@@ -55,6 +55,7 @@ export const feedsAppRouter = router({
name: input.name,
url: input.url,
userId: ctx.user.id,
+ enabled: input.enabled,
})
.returning();
return feed;
@@ -69,6 +70,7 @@ export const feedsAppRouter = router({
.set({
name: input.name,
url: input.url,
+ enabled: input.enabled,
})
.where(
and(