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.

finalize script

Steven Teyc8568dd9e9fe
diff --git a/apps/web/scripts/framer/backfill-remainder.ts b/apps/web/scripts/framer/backfill-remainder.ts
index 9d5e3ad679..03827e730d 100644
--- a/apps/web/scripts/framer/backfill-remainder.ts
+++ b/apps/web/scripts/framer/backfill-remainder.ts
@@ -135,11 +135,16 @@ async function main() {
// Get the first link to process
const linkToProcess = linksWithSales[0];
- console.log(
- `Processing link: ${linkToProcess.via} (${linkToProcess.linkId})`,
- );
- await processFramerData(linkToProcess);
+ if (linkToProcess.linkId) {
+ console.log(
+ `Processing link: ${linkToProcess.via} (${linkToProcess.linkId})`,
+ );
+
+ await processFramerData(linkToProcess);
+ } else {
+ console.log("No linkId found for linkToProcess");
+ }
// Remove the processed link from the array
linksWithSales.shift();