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.

Update restore-backup.ts

Tim Wilson92705771244c
diff --git a/apps/web/scripts/restore-backup.ts b/apps/web/scripts/restore-backup.ts
index 588cc1df76..fc4b77f2aa 100644
--- a/apps/web/scripts/restore-backup.ts
+++ b/apps/web/scripts/restore-backup.ts
@@ -1,13 +1,13 @@
import { bulkCreateLinks } from "@/lib/api/links";
import prisma from "@/lib/prisma";
+import { ProcessedLinkProps } from "@/lib/types";
import { redis } from "@/lib/upstash";
import "dotenv-flow/config";
const domain = "xxx";
async function main() {
- // TODO: Figure out the right way to type this (do we need to run processLink for these before creating?)
- const restoredData = await redis.lrange<LinkWithTagIdsProps>(
+ const restoredData = await redis.lrange<ProcessedLinkProps>(
"restoredData",
0,
-1,