Skip to content

Commit

Permalink
bam
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Aug 21, 2024
1 parent a54513b commit 3e9f4e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/routes/network/eras.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -146,6 +144,7 @@ async function route(fastify: FastifyInstance) {

return reply.send(summary);
} catch (error) {
console.error(error);
if (clientDbSync) {
clientDbSync.release();
}
Expand Down
4 changes: 1 addition & 3 deletions src/sql/governance/proposals_proposal_parameters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
LEFT JOIN cost_model cm ON (ep.cost_model_id = cm.id);

0 comments on commit 3e9f4e9

Please sign in to comment.