Skip to content

Commit

Permalink
PR review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mpastecki committed Aug 9, 2024
1 parent 710630e commit 48b4886
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/query/src/graphql/graphql.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {NextFunction, Request, Response} from 'express';
import PinoLogger from 'express-pino-logger';
import {execute, GraphQLSchema, subscribe} from 'graphql';
import {set} from 'lodash';
import {Pool} from 'pg';
import {Pool, PoolClient} from 'pg';
import {makePluginHook} from 'postgraphile';
import {SubscriptionServer} from 'subscriptions-transport-ws';
import {Config} from '../configure';
Expand Down Expand Up @@ -128,9 +128,9 @@ export class GraphqlModule implements OnModuleInit, OnModuleDestroy {
}
}

private setupKeepAlive(pgClient) {
private setupKeepAlive(pgClient: PoolClient) {
setInterval(() => {
(async () => {
void (async () => {
try {
await pgClient.query('SELECT 1');
} catch (err) {
Expand Down

0 comments on commit 48b4886

Please sign in to comment.