fix: Update test email generation

This commit is contained in:
beilunyang
2024-12-24 00:33:13 +08:00
parent 774736af38
commit 1d54fa0250

View File

@@ -22,7 +22,7 @@ async function generateTestData(env: Env) {
// 生成测试邮箱
const testEmails = Array.from({ length: MAX_EMAIL_COUNT }).map(() => ({
id: crypto.randomUUID(),
address: `${nanoid(6)}@${EMAIL_CONFIG.DOMAIN}`,
address: `${nanoid(6)}@${EMAIL_CONFIG.DOMAINS[0]}`,
userId: TEST_USER_ID,
createdAt: now,
expiresAt: new Date(now.getTime() + 24 * 60 * 60 * 1000),