Skip to content

Commit e89ab0f

Browse files
committed
fix more imports
1 parent 994e3a8 commit e89ab0f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

svc/api/spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import constants from 'dotaconstants';
22
import moment from 'moment';
3-
import { Client } from 'pg';
3+
import pg from 'pg';
44
import config from '../../config.ts';
55
import { addJob, addReliableJob, getReliableJob } from '../store/queue.ts';
66
import { search } from '../store/search.ts';
@@ -96,6 +96,7 @@ import TeamObjectResponse from './responses/TeamObjectResponse.ts';
9696
import TeamPlayersResponse from './responses/TeamPlayersResponse.ts';
9797

9898
const { heroes: heroesConstants, cluster } = constants;
99+
const Client = pg.Client;
99100

100101
const parameters = {
101102
...heroParams,

svc/store/queue.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import redis from './redis.ts';
33
import db from './db.ts';
44
import { Redis } from 'ioredis';
55
import config from '../../config.ts';
6-
import { Client } from 'pg';
6+
import pg from 'pg';
77
import c from 'ansi-colors';
88

9+
const Client = pg.Client;
10+
911
moment.relativeTimeThreshold('ss', 0);
1012

1113
export async function runQueue(

svc/util/archiveUtil.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import config from '../../config.ts';
22
import { matchArchive, playerArchive } from '../store/archive.ts';
33
import QueryStream from 'pg-query-stream';
4-
import { Client } from 'pg';
4+
import pg from 'pg';
55
import db from '../store/db.ts';
66
import type { PutObjectCommandOutput } from '@aws-sdk/client-s3';
77
import { getFullPlayerMatchesWithMetadata } from './buildPlayer.ts';
88
import { getMatchDataFromBlobWithMetadata } from './buildMatch.ts';
99
import { isDataComplete, randomInt, redisCount } from './utility.ts';
1010

11+
const Client = pg.Client;
12+
1113
async function processMatch(matchId: number) {
1214
// Check if we should archive the blobs (should be parsed and not archived)
1315
// const isParsed = await checkIsParsed(matchId);

0 commit comments

Comments
 (0)