Show suspended since and new emails for suspend continue approve and rejection
All checks were successful
Build and Push / build (push) Successful in 1m26s
All checks were successful
Build and Push / build (push) Successful in 1m26s
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
clearEncryptedSecrets,
|
||||
} from "@/lib/db";
|
||||
import { createTenant, patchTenantSpec, setTenantAnnotation } from "@/lib/k8s";
|
||||
import { sendApprovalEmail } from "@/lib/email";
|
||||
import { sendApprovalEmail, sendResumeApprovalEmail } from "@/lib/email";
|
||||
import { decryptSecrets } from "@/lib/crypto";
|
||||
import { writePackageSecrets } from "@/lib/openbao";
|
||||
import {
|
||||
@@ -105,11 +105,11 @@ export async function POST(
|
||||
|
||||
await updateTenantRequestStatus(id, "approved", { adminNotes });
|
||||
|
||||
await sendApprovalEmail(
|
||||
await sendResumeApprovalEmail(
|
||||
tenantRequest.contactEmail,
|
||||
tenantRequest.contactName,
|
||||
tenantRequest.companyName
|
||||
).catch((e) => console.error("approval email failed:", e));
|
||||
).catch((e) => console.error("resume approval email failed:", e));
|
||||
|
||||
return NextResponse.json({
|
||||
message: "Resume approved. Tenant is reactivating.",
|
||||
|
||||
Reference in New Issue
Block a user