Merge pull request #214 from sjdonado/main

This commit is contained in:
Dries Augustyns
2025-09-05 13:32:56 +02:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "plunk", "name": "plunk",
"version": "1.3.1", "version": "1.3.2",
"private": true, "private": true,
"license": "agpl-3.0", "license": "agpl-3.0",
"workspaces": { "workspaces": {
@@ -44,9 +44,12 @@ export class SNSWebhook {
if (email.projectId) { if (email.projectId) {
if (body.eventType === "Click") { if (body.eventType === "Click") {
signale.success(`Click received for ${email.contact.email} from ${project.name}`); signale.success(`Click received for ${email.contact.email} from ${project.name}`);
await prisma.click.create({ await prisma.click.create({
data: { emailId: email.id, link: body.click.link }, data: { emailId: email.id, link: body.click.link },
}); });
return res.status(200).json({ success: true });
} }
if (body.eventType === "Complaint") { if (body.eventType === "Complaint") {