Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Dec 17, 2023
1 parent 1c1390d commit 992cbe7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/routes/governance/dreps/hash/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ async function route(fastify: FastifyInstance) {
handler: async (request: FastifyRequest<QueryTypes.RequestParametersDRepID>, reply) => {
const clientDbSync = await getDbSync(fastify);

const { rows }: { rows: ResponseTypes.DRepsDrepID } = await clientDbSync.query<QueryTypes.DRepsDrepID>(
SQLQuery.get('governance_dreps_drep_id'),
[request.params.drep_id],
);
const { rows }: { rows: ResponseTypes.DRepsDrepID } =
await clientDbSync.query<QueryTypes.DRepsDrepID>(SQLQuery.get('governance_dreps_drep_id'), [
request.params.drep_id,
]);

clientDbSync.release();

Expand Down
10 changes: 4 additions & 6 deletions src/routes/governance/dreps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ async function route(fastify: FastifyInstance) {
const clientDbSync = await getDbSync(fastify);

try {
const { rows }: { rows: ResponseTypes.DReps } =
await clientDbSync.query<QueryTypes.DReps>(SQLQuery.get('governance_dreps'), [
request.query.order,
request.query.count,
request.query.page,
]);
const { rows }: { rows: ResponseTypes.DReps } = await clientDbSync.query<QueryTypes.DReps>(
SQLQuery.get('governance_dreps'),
[request.query.order, request.query.count, request.query.page],
);

clientDbSync.release();

Expand Down
2 changes: 1 addition & 1 deletion src/types/queries/governance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ export interface DRepsDrepID {
active: boolean;
active_epoch: number | null;
has_script: boolean;
}
}
2 changes: 0 additions & 2 deletions src/types/responses/governance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'];


0 comments on commit 992cbe7

Please sign in to comment.