fix: half missing logging

This commit is contained in:
2026-06-11 19:07:38 +07:00 Unverified
parent 88def78ce6
commit f4d7db6831
+3 -1
View File
@@ -60,13 +60,15 @@ export function webhookMerger(app: App) {
state.timer = setTimeout(async () => { state.timer = setTimeout(async () => {
try { try {
await fetch(url, { const res = await fetch(url, {
method: "POST", method: "POST",
headers: { headers: {
"content-type": "application/json", "content-type": "application/json",
}, },
body: JSON.stringify(state.data), body: JSON.stringify(state.data),
}); });
if (!res.ok)
log.warn`Could not forward webhook: ${res.status}\n${await res.json().catch(() => res.text())}`;
} finally { } finally {
pending.delete(id); pending.delete(id);
} }