feat: automate domain verification follow-ups (#375)
* feat: automate domain verification follow-ups * fix: harden domain verification notifications * fix: skip unchanged first-run domain status emails * fix: make domain cleanup resilient and status labels readable * fix: clarify domain verification notification messaging
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { env } from "./env";
|
||||
import { isCloud , isEmailCleanupEnabled } from "./utils/common";
|
||||
import { initDomainVerificationJob } from "~/server/jobs/domain-verification-job";
|
||||
import { isCloud, isEmailCleanupEnabled } from "~/utils/common";
|
||||
|
||||
let initialized = false;
|
||||
|
||||
@@ -25,6 +25,10 @@ export async function register() {
|
||||
await import("~/server/jobs/usage-job");
|
||||
}
|
||||
|
||||
if (process.env.REDIS_URL) {
|
||||
await initDomainVerificationJob();
|
||||
}
|
||||
|
||||
if (isEmailCleanupEnabled()) {
|
||||
await import("~/server/jobs/cleanup-email-bodies");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user