mirror of
https://github.com/beilunyang/moemail.git
synced 2026-07-07 15:21:37 +08:00
fix: Update test email generation
This commit is contained in:
@@ -22,7 +22,7 @@ async function generateTestData(env: Env) {
|
|||||||
// 生成测试邮箱
|
// 生成测试邮箱
|
||||||
const testEmails = Array.from({ length: MAX_EMAIL_COUNT }).map(() => ({
|
const testEmails = Array.from({ length: MAX_EMAIL_COUNT }).map(() => ({
|
||||||
id: crypto.randomUUID(),
|
id: crypto.randomUUID(),
|
||||||
address: `${nanoid(6)}@${EMAIL_CONFIG.DOMAIN}`,
|
address: `${nanoid(6)}@${EMAIL_CONFIG.DOMAINS[0]}`,
|
||||||
userId: TEST_USER_ID,
|
userId: TEST_USER_ID,
|
||||||
createdAt: now,
|
createdAt: now,
|
||||||
expiresAt: new Date(now.getTime() + 24 * 60 * 60 * 1000),
|
expiresAt: new Date(now.getTime() + 24 * 60 * 60 * 1000),
|
||||||
|
|||||||
Reference in New Issue
Block a user