Add percent in movie's watchlist

This commit is contained in:
Zoe Roux
2025-03-12 09:36:48 +01:00
parent 32cc6e7910
commit be35a4f0d9
7 changed files with 15 additions and 6 deletions
+4 -1
View File
@@ -250,7 +250,10 @@ export async function getShows({
.as("t");
const watchStatusQ = db
.select()
.select({
...getColumns(watchlist),
percent: watchlist.seenCount,
})
.from(watchlist)
.where(eq(watchlist.profilePk, userId))
.as("watchstatus");