freshyo/apps/backend/src/lib/catch-async.ts
2026-03-27 00:34:32 +05:30

11 lines
313 B
TypeScript
Executable file

// catchAsync is no longer needed with Hono
// Hono handles async errors automatically
// This file is kept for backward compatibility but should be removed in the future
import { Context } from 'hono';
const catchAsync = (fn: (c: Context) => Promise<Response>) => {
return fn;
};
export default catchAsync;