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 script

Steven Tey5e813cba3297
diff --git a/apps/web/scripts/partners/sanitize-websites.ts b/apps/web/scripts/partners/sanitize-websites.ts
index 84d43a21ff..b865cfc6b1 100644
--- a/apps/web/scripts/partners/sanitize-websites.ts
+++ b/apps/web/scripts/partners/sanitize-websites.ts
@@ -6,9 +6,19 @@ import "dotenv-flow/config";
async function main() {
const partners = await prisma.partner.findMany({
where: {
- OR: [
- { website: { not: { contains: "http" } } },
- { website: { contains: "?" } },
+ AND: [
+ {
+ website: { not: "" },
+ },
+ {
+ website: { not: null },
+ },
+ {
+ OR: [
+ { website: { not: { contains: "http" } } },
+ { website: { contains: "?" } },
+ ],
+ },
],
},
select: {
@@ -19,7 +29,7 @@ async function main() {
});
if (partners.length === 0) {
- console.log("No partners found processing.");
+ console.log("No partners found.");
return;
}