From e1bd85f87957878b1b41b1443b899aaa06d1ce60 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 29 Oct 2026 18:12:15 -0500 Subject: [PATCH] fix: type templateSaved for Hono's HTML response The skipped-mail branch returns showEvent, which can be a Promise from c.html(). --- src/admin-http.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin-http.tsx b/src/admin-http.tsx index 28a01b5..847c8ad 100644 --- a/src/admin-http.tsx +++ b/src/admin-http.tsx @@ -895,7 +895,7 @@ function templateSaved( services: AdminServices, eventId: number, saved: { mailed: number; skipped?: string[] }, -): Response { +): Response | Promise { const notice = saved.mailed > 0 ? 'template-saved-mailed' : 'template-saved'; if (saved.skipped && saved.skipped.length > 0) { return showEvent(c, services, undefined, 200, undefined, eventId, saved.skipped.join(' '), notice);