Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Explain why the backfill keeps Link.comments

Rafi8e2b6e00711a
diff --git a/apps/web/scripts/migrations/backfill-partner-link-comments.ts b/apps/web/scripts/migrations/backfill-partner-link-comments.ts
index 3a74464009..15c965ce39 100644
--- a/apps/web/scripts/migrations/backfill-partner-link-comments.ts
+++ b/apps/web/scripts/migrations/backfill-partner-link-comments.ts
@@ -3,6 +3,8 @@ import "dotenv-flow/config";
const BATCH_SIZE = 500;
+// Copies Link.comments into PartnerLinkDetails and keeps them on Link, because
+// workspace members can also write Link.comments from the dashboard.
async function main() {
let totalProcessed = 0;