This commit is contained in:
@@ -103,11 +103,13 @@ export async function POST(
|
||||
);
|
||||
}
|
||||
|
||||
await updateTenantRequestStatus(id, "approved", adminNotes);
|
||||
await updateTenantRequestStatus(id, "approved", { adminNotes });
|
||||
|
||||
await sendApprovalEmail(tenantRequest, tenantRequest.tenantName).catch(
|
||||
(e) => console.error("approval email failed:", e)
|
||||
);
|
||||
await sendApprovalEmail(
|
||||
tenantRequest.contactEmail,
|
||||
tenantRequest.contactName,
|
||||
tenantRequest.companyName
|
||||
).catch((e) => console.error("approval email failed:", e));
|
||||
|
||||
return NextResponse.json({
|
||||
message: "Resume approved. Tenant is reactivating.",
|
||||
|
||||
Reference in New Issue
Block a user