diff --git a/src/routes/network/eras.ts b/src/routes/network/eras.ts index 4d348bad..0feadea5 100644 --- a/src/routes/network/eras.ts +++ b/src/routes/network/eras.ts @@ -34,8 +34,6 @@ async function route(fastify: FastifyInstance) { SQLQuery.get('network_protocols'), ); - clientDbSync.release(); - // First summary item is Byron era parameters const first = { start: { @@ -146,6 +144,7 @@ async function route(fastify: FastifyInstance) { return reply.send(summary); } catch (error) { + console.error(error); if (clientDbSync) { clientDbSync.release(); } diff --git a/src/sql/governance/proposals_proposal_parameters.sql b/src/sql/governance/proposals_proposal_parameters.sql index 9a1b8268..df5757fa 100644 --- a/src/sql/governance/proposals_proposal_parameters.sql +++ b/src/sql/governance/proposals_proposal_parameters.sql @@ -116,6 +116,4 @@ SELECT encode(tx.hash, 'hex') AS "tx_hash", FROM gov_action_proposal gap JOIN tx ON (gap.tx_id = tx.id) JOIN epoch_param ep ON (gap.param_proposal = ep.id) - LEFT JOIN cost_model cm ON (ep.cost_model_id = cm.id) -WHERE encode(tx.hash, 'hex') = $1 - AND gap.index = $2 \ No newline at end of file + LEFT JOIN cost_model cm ON (ep.cost_model_id = cm.id); \ No newline at end of file