Timestamp and registration checking
This commit is contained in:
@@ -238,6 +238,17 @@ export async function clearEncryptedSecrets(requestId: string): Promise<void> {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper around domain-check.ts that injects the portal's connection pool.
|
||||
* Kept here so route handlers don't need direct access to the pool.
|
||||
*/
|
||||
export async function checkDuplicateDomain(email: string) {
|
||||
await ensureSchema();
|
||||
// Lazy import to keep db.ts free of fetch/AbortSignal at module load time.
|
||||
const { checkRegistrationDomain } = await import("./domain-check");
|
||||
return checkRegistrationDomain(getPool(), email);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark a tenant request as "deleted" when the associated tenant CR is deleted.
|
||||
* This allows the customer to re-submit the onboarding wizard.
|
||||
|
||||
Reference in New Issue
Block a user