Skip to content

Commit

Permalink
fix: use ResultSet instead of Result type for Postgres result
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmclaurin committed Feb 5, 2019
1 parent deca3c5 commit d82bd92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ShardRegistrar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @prettier
*/
import EventEmitter from '@jcoreio/typed-event-emitter'
import { Client, type Result } from 'pg'
import { Client, type ResultSet } from 'pg'
import uuidv4 from 'uuid/v4'
import debug from 'debug'
import ShardReservationCluster from './schema/ShardReservationCluster'
Expand Down Expand Up @@ -131,7 +131,7 @@ export default class ShardRegistrar extends EventEmitter<ShardRegistrarEvents> {
}
}

async _query(sql: string, params?: Array<any>): Promise<Result> {
async _query(sql: string, params?: Array<any>): Promise<ResultSet> {
this._debug(sql, params)
if (!this._running) throw new Error('already stopped')
const result = await (this._lastQuery = this._client.query(sql, params))
Expand Down

0 comments on commit d82bd92

Please sign in to comment.