diff --git a/src/chainhook/server.ts b/src/chainhook/server.ts index 14e6db5c..905d475c 100644 --- a/src/chainhook/server.ts +++ b/src/chainhook/server.ts @@ -124,10 +124,11 @@ const Chainhook: FastifyPluginCallback, Server, TypeBoxType fastify.post('/chainhook/inscription_feed', async (request, reply) => { try { await processInscriptionFeed(request.body, fastify.db); + await reply.code(200).send(); } catch (error) { logger.error(error, `EventServer error processing inscription_feed`); + await reply.code(500).send(); } - await reply.code(200).send(); }); done(); };