diff --git a/src/routes/governance/dreps/drep-id/updates.ts b/src/routes/governance/dreps/drep-id/updates.ts index 2dfdab50..2c3cc9be 100644 --- a/src/routes/governance/dreps/drep-id/updates.ts +++ b/src/routes/governance/dreps/drep-id/updates.ts @@ -17,7 +17,7 @@ async function route(fastify: FastifyInstance) { const { rows }: { rows: ResponseTypes.DRepsDrepIDUpdates } = await clientDbSync.query( SQLQuery.get('governance_dreps_drep_id_updates'), - [(request.query.order, request.query.count, request.query.page, request.params.drep_id)], + [request.query.order, request.query.count, request.query.page, request.params.drep_id], ); clientDbSync.release(); diff --git a/src/sql/governance/dreps_drep_id.sql b/src/sql/governance/dreps_drep_id.sql index f13bd799..35cb0da6 100644 --- a/src/sql/governance/dreps_drep_id.sql +++ b/src/sql/governance/dreps_drep_id.sql @@ -12,7 +12,7 @@ SELECT dh.view AS "drep_id", WHEN dr.deposit >= 0 THEN true ELSE false END - ) AS "is_registered", + ) AS "active", ( CASE WHEN dr.deposit >= 0 THEN (