The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update sync-link-tags.ts
Steven Teyeb7ea253c938
diff --git a/apps/web/scripts/sync-link-tags.ts b/apps/web/scripts/sync-link-tags.tsindex dff21450b7..df504b3ac4 100644--- a/apps/web/scripts/sync-link-tags.ts+++ b/apps/web/scripts/sync-link-tags.ts@@ -15,6 +15,7 @@ async function main() {none: {},},},+ take: 1000,});// make sure all tagId exist@@ -40,21 +41,6 @@ async function main() {});console.log(`Created ${response.count} LinkTag records`);-- // const tagsThatDontExist = await Promise.all(- // links.map(async ({ tagId }) => ({- // id: tagId,- // tag: await prisma.tag.findUnique({- // where: {- // id: tagId!,- // },- // }),- // })),- // ).then((tags) => tags.filter(({ tag }) => !tag).map(({ id }) => id));-- // console.log(- // `Tags that don't exist: ${JSON.stringify(tagsThatDontExist, null, 2)}`,- // );}main();