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.

final changes

Steven Tey2c4cf414473a
diff --git a/apps/web/lib/api/links/get-links-for-workspace.ts b/apps/web/lib/api/links/get-links-for-workspace.ts
index ec2c0a45ef..790ddaf80e 100644
--- a/apps/web/lib/api/links/get-links-for-workspace.ts
+++ b/apps/web/lib/api/links/get-links-for-workspace.ts
@@ -54,9 +54,7 @@ export async function getLinksForWorkspace({
search = search.replace(key, encodedKey);
}
- } catch (e) {
- //
- }
+ } catch (e) {}
}
const links = await prisma.link.findMany({
diff --git a/apps/web/scripts/buffer/migrate-to-case-sensitive.ts b/apps/web/scripts/buffer/migrate-to-case-sensitive.ts
index 3e1b385213..c17d5e8035 100644
--- a/apps/web/scripts/buffer/migrate-to-case-sensitive.ts
+++ b/apps/web/scripts/buffer/migrate-to-case-sensitive.ts
@@ -6,6 +6,7 @@ import { encodeKeyIfCaseSensitive } from "../../lib/api/links/case-sensitivity";
const domain = "buff.ly";
const userId = "user_EzRuKzR9sG3WmHapVV6aEec7";
+const oldFolderId = "fold_LIZsdjTgFVbQVGYSUmYAi5vT";
const newFolderId = "fold_1JNQBVZV8P0NA0YGB11W2HHSQ";
async function main() {
@@ -13,10 +14,16 @@ async function main() {
where: {
userId,
domain,
+ folderId: oldFolderId,
createdAt: {
lte: new Date("2025-03-07"), // TODO: update this to the timestamp when the PR is merged
},
},
+ select: {
+ id: true,
+ domain: true,
+ key: true,
+ },
take: 500,
});