refactor: Use express-async-errors instead of express-async-handler
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { Router } from 'express';
|
||||
import asyncHandler from 'express-async-handler';
|
||||
import webhooksHandler from '../controllers/paddle/webhooks.ee.js';
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.post('/webhooks', asyncHandler(webhooksHandler));
|
||||
router.post('/webhooks', webhooksHandler);
|
||||
|
||||
export default router;
|
||||
|
Reference in New Issue
Block a user