From 992cbe7fc85a5368fb0b7bd119ec10458faa7447 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Sun, 17 Dec 2023 17:34:27 +0100 Subject: [PATCH] fix: lint --- src/routes/governance/dreps/hash/index.ts | 8 ++++---- src/routes/governance/dreps/index.ts | 10 ++++------ src/types/queries/governance.ts | 2 +- src/types/responses/governance.ts | 2 -- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/routes/governance/dreps/hash/index.ts b/src/routes/governance/dreps/hash/index.ts index 5114996a..d2eb284d 100644 --- a/src/routes/governance/dreps/hash/index.ts +++ b/src/routes/governance/dreps/hash/index.ts @@ -14,10 +14,10 @@ async function route(fastify: FastifyInstance) { handler: async (request: FastifyRequest, reply) => { const clientDbSync = await getDbSync(fastify); - const { rows }: { rows: ResponseTypes.DRepsDrepID } = await clientDbSync.query( - SQLQuery.get('governance_dreps_drep_id'), - [request.params.drep_id], - ); + const { rows }: { rows: ResponseTypes.DRepsDrepID } = + await clientDbSync.query(SQLQuery.get('governance_dreps_drep_id'), [ + request.params.drep_id, + ]); clientDbSync.release(); diff --git a/src/routes/governance/dreps/index.ts b/src/routes/governance/dreps/index.ts index 0f4b640f..a5079f8f 100644 --- a/src/routes/governance/dreps/index.ts +++ b/src/routes/governance/dreps/index.ts @@ -14,12 +14,10 @@ async function route(fastify: FastifyInstance) { const clientDbSync = await getDbSync(fastify); try { - const { rows }: { rows: ResponseTypes.DReps } = - await clientDbSync.query(SQLQuery.get('governance_dreps'), [ - request.query.order, - request.query.count, - request.query.page, - ]); + const { rows }: { rows: ResponseTypes.DReps } = await clientDbSync.query( + SQLQuery.get('governance_dreps'), + [request.query.order, request.query.count, request.query.page], + ); clientDbSync.release(); diff --git a/src/types/queries/governance.ts b/src/types/queries/governance.ts index c89e2798..872a9d4c 100644 --- a/src/types/queries/governance.ts +++ b/src/types/queries/governance.ts @@ -30,4 +30,4 @@ export interface DRepsDrepID { active: boolean; active_epoch: number | null; has_script: boolean; -} \ No newline at end of file +} diff --git a/src/types/responses/governance.ts b/src/types/responses/governance.ts index f61afc12..e66d9b21 100644 --- a/src/types/responses/governance.ts +++ b/src/types/responses/governance.ts @@ -5,5 +5,3 @@ export type DRepsDrepID = OpenApiResponseTypes['drep_details_content']; export type DRepsDrepIDMetadata = OpenApiResponseTypes['drep_metadata']; export type DRepsDrepIDUpdates = OpenApiResponseTypes['drep_updates']; export type DRepsDrepIDDelegators = OpenApiResponseTypes['drep_delegators']; - -