⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
minor fix
daniel31x138c76b0d1416b
diff --git a/lib/api/controllers/links/postLink.ts b/lib/api/controllers/links/postLink.tsindex 0301bca0..ec03d2a9 100644--- a/lib/api/controllers/links/postLink.ts+++ b/lib/api/controllers/links/postLink.ts@@ -57,6 +57,17 @@ export default async function postLink(});link.collection.id = collection.id;++ await prisma.user.update({+ where: {+ id: userId,+ },+ data: {+ collectionOrder: {+ push: link.collection.id,+ },+ },+ });}} else if (link.collection.id) {const collectionIsAccessible = await getPermission({@@ -83,6 +94,17 @@ export default async function postLink(});link.collection.id = unorganizedCollection?.id;++ await prisma.user.update({+ where: {+ id: userId,+ },+ data: {+ collectionOrder: {+ push: link.collection.id,+ },+ },+ });} else {return { response: "Uncaught error.", status: 500 };}