From 9f08cf474fdabf3bff7b9798cb7ec1f1f58d823d Mon Sep 17 00:00:00 2001 From: 1000101 Date: Mon, 18 Dec 2023 01:34:22 +0100 Subject: [PATCH] fix(cip-1694): drep active --- src/routes/governance/dreps/drep-id/updates.ts | 2 +- src/sql/governance/dreps_drep_id.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 (