Files
dataroom/features/access-notifications/lib/send-blocked-email-attempt.ts
zeekay a15864b16b ci: amd64-only build (matches hanzo runner pool topology)
hanzo-build-linux-amd64 is the only ARC runner pool installed on
hanzo-k8s today (arm64 pool is paused until DigitalOcean ships
arm64 droplets, per ~/work/hanzo/.github/RUNNERS.md). The arm64
job was waiting on spark-hanzoai-arm64 — not provisioned in this
cluster — so every build sat in queue forever and the amd64 leg
got cancelled.

Set platforms: linux/amd64 on the reusable build call to skip
arm64 entirely. Re-add arm64 if/when DO ships arm64 droplets and
the spark runner pool comes back online.
2026-06-07 11:38:49 -07:00

49 lines
1.0 KiB
TypeScript

import { sendEmail } from "@/lib/resend";
import BlockedEmailAttempt from "../components/blocked-email-attempt";
export const sendBlockedEmailAttemptNotification = async ({
to,
cc,
blockedEmail,
linkName,
resourceName,
resourceType = "document",
timestamp,
locationString,
accessType,
}: {
to: string;
cc?: string[];
blockedEmail: string;
linkName: string;
resourceName: string;
resourceType?: "document" | "dataroom";
timestamp?: string;
locationString?: string;
accessType: "global" | "allow" | "deny";
}) => {
const emailTemplate = BlockedEmailAttempt({
blockedEmail,
linkName,
resourceName,
resourceType,
timestamp,
locationString,
accessType,
});
try {
await sendEmail({
to,
cc,
subject: `Blocked access attempt to ${resourceType}: ${resourceName}`,
react: emailTemplate,
system: true,
test: process.env.NODE_ENV === "development",
});
return { success: true };
} catch (error) {
return { success: false, error };
}
};