⚡️⚡️⚡️ 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
Added comment about loop
Isaac Wise58e2fb22c917
diff --git a/lib/api/controllers/links/bulk/updateLinks.ts b/lib/api/controllers/links/bulk/updateLinks.tsindex 8510e086..7a528826 100644--- a/lib/api/controllers/links/bulk/updateLinks.ts+++ b/lib/api/controllers/links/bulk/updateLinks.ts@@ -1,11 +1,11 @@import { LinkIncludingShortenedCollectionAndTags } from "@/types/global";import updateLinkById from "../linkId/updateLinkById";-// Need to fix thisexport default async function updateLinks(userId: number, links: LinkIncludingShortenedCollectionAndTags[], newData: Pick<LinkIncludingShortenedCollectionAndTags, "tags" | "collectionId">) {let allUpdatesSuccessful = true;- console.log(newData)+ // Have to use a loop here rather than updateMany, see the following:+ // https://github.com/prisma/prisma/issues/3143for (const link of links) {const updatedData: LinkIncludingShortenedCollectionAndTags = {...link,