mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-03 13:21:35 +08:00
feat: support cleanDays max 1000 (#622)
This commit is contained in:
@@ -151,7 +151,7 @@ export const cleanup = async (
|
||||
cleanType: string | undefined | null,
|
||||
cleanDays: number | undefined | null
|
||||
): Promise<boolean> => {
|
||||
if (!cleanType || typeof cleanDays !== 'number' || cleanDays < 0 || cleanDays > 30) {
|
||||
if (!cleanType || typeof cleanDays !== 'number' || cleanDays < 0 || cleanDays > 1000) {
|
||||
throw new Error("Invalid cleanType or cleanDays")
|
||||
}
|
||||
console.log(`Cleanup ${cleanType} before ${cleanDays} days`);
|
||||
|
||||
Reference in New Issue
Block a user