mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-06 06:41:32 +08:00
feat: add CI CD (#134)
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "wrangler dev",
|
||||
"deploy": "wrangler deploy",
|
||||
"deploy:preview": "wrangler deploy --preview",
|
||||
"deploy": "wrangler deploy --production",
|
||||
"start": "wrangler dev",
|
||||
"build": "wrangler deploy src/worker.js --dry-run --outdir dist --minify"
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@ api.post('/api/requset_send_mail_access', async (c) => {
|
||||
}
|
||||
try {
|
||||
const { success } = await c.env.DB.prepare(
|
||||
`INSERT INTO address_sender (address, enabled) VALUES (?, 0)`
|
||||
`INSERT INTO address_sender (address, enabled) VALUES (?, 1)`
|
||||
).bind(address).run();
|
||||
if (!success) {
|
||||
return c.text("Failed to request send mail access", 500)
|
||||
|
||||
Reference in New Issue
Block a user