Skip to content

Commit

Permalink
fix(cip-1694): drep active
Browse files Browse the repository at this point in the history
  • Loading branch information
1000101 committed Dec 18, 2023
1 parent e795940 commit 9f08cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/governance/dreps/drep-id/updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function route(fastify: FastifyInstance) {
const { rows }: { rows: ResponseTypes.DRepsDrepIDUpdates } =
await clientDbSync.query<QueryTypes.DRepsDrepIDUpdates>(
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();
Expand Down
2 changes: 1 addition & 1 deletion src/sql/governance/dreps_drep_id.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 9f08cf4

Please sign in to comment.