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 () => {
try {
await fetch(url, {
const res = await fetch(url, {
method: "POST",
headers: {
"content-type": "application/json",
},
body: JSON.stringify(state.data),
});
if (!res.ok)
log.warn`Could not forward webhook: ${res.status}\n${await res.json().catch(() => res.text())}`;
} finally {
pending.delete(id);
}