fix: fix missing fields in database initialization

This commit is contained in:
eoao
2026-05-12 12:41:22 +08:00
parent e68099edb3
commit 40fc68e56c
3 changed files with 3 additions and 7 deletions

View File

@@ -597,9 +597,7 @@ const dbInit = {
title TEXT NOT NULL, title TEXT NOT NULL,
auto_refresh INTEGER NOT NULL, auto_refresh INTEGER NOT NULL,
register_verify INTEGER NOT NULL, register_verify INTEGER NOT NULL,
add_email_verify INTEGER NOT NULL, add_email_verify INTEGER NOT NULL
ai_code INTEGER NOT NULL DEFAULT 1,
ai_code_filter TEXT NOT NULL DEFAULT ''
) )
`).run(); `).run();

View File

@@ -402,8 +402,6 @@ const emailService = {
}; };
} }
console.error(sendForm)
const result = await c.env.email.send(sendForm); const result = await c.env.email.send(sendForm);
return { return {

View File

@@ -31,8 +31,8 @@ directory = "./dist"
not_found_handling = "single-page-application" not_found_handling = "single-page-application"
run_worker_first = true run_worker_first = true
[[send_email]] #[[send_email]]
name = "email" #name = "email"
[vars] [vars]