Fix: ntfy signup emoji and await

This commit is contained in:
2025-11-10 13:34:23 -08:00
parent e32430e1ce
commit 19d65c6faf

View File

@@ -1,9 +1,9 @@
const ntfy = (env,topic,tags,msg,p=3) => const ntfy = (env,topic,title,msg,p=3) =>
env.NTFY_TOPIC ? env.NTFY_TOPIC ?
fetch(`https://ntfy.sh/${topic}`,{ fetch(`https://ntfy.sh/${topic}`,{
method:"POST", method:"POST",
headers:{ headers:{
"Title":tags, "Title":`🆕 ${title}`,
"Priority":String(p), "Priority":String(p),
"Content-Type":"text/plain" "Content-Type":"text/plain"
}, },
@@ -41,7 +41,7 @@ export async function onRequestPost({ request, env }) {
.bind(username,pass_hash) .bind(username,pass_hash)
.run(); .run();
ntfy( await ntfy(
env, env,
env.NTFY_TOPIC, env.NTFY_TOPIC,
"auth-signup", "auth-signup",