Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

minor change

Daniel93558bb79163
diff --git a/lib/api/controllers/public/getCollection.ts b/lib/api/controllers/public/getCollection.ts
index 7aa26a81..2564df7a 100644
--- a/lib/api/controllers/public/getCollection.ts
+++ b/lib/api/controllers/public/getCollection.ts
@@ -9,7 +9,7 @@ export default async function getCollection(body: string) {
const collection = await prisma.collection.findFirst({
where: {
- id: Number(query.collectionId),
+ id: query.collectionId,
isPublic: true,
},
});
@@ -20,12 +20,12 @@ export default async function getCollection(body: string) {
skip: query.cursor ? 1 : undefined,
cursor: query.cursor
? {
- id: Number(query.cursor),
+ id: query.cursor,
}
: undefined,
where: {
collection: {
- id: Number(query.collectionId),
+ id: query.collectionId,
},
},
include: {