diff --git a/.gitignore b/.gitignore index 922ea7b..947a78d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,4 @@ pnpm-debug.log* # macOS-specific files .DS_Store -db.sqlite* +*.sqlite* diff --git a/scripts/export-csv.ts b/scripts/export-csv.ts index 232cf72..8226867 100644 --- a/scripts/export-csv.ts +++ b/scripts/export-csv.ts @@ -8,6 +8,7 @@ async function exportEmails() { const letters = await db .selectFrom("letters") .where("confirmed", "=", 1) + .where("subscribed", "=", 1) .groupBy("email") .select(["email", "firstName", "lastName"]) .execute();