Skip to content

Commit d2d9df0

Browse files
authored
No need to include the postgraphile-core or root pg
1 parent a383dd8 commit d2d9df0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/makeCache.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// This script is called from scripts/generate-cache
2-
const { createPostGraphileSchema } = require('postgraphile-core');
2+
const { createPostGraphileSchema } = require('postgraphile');
33
const { options } = require('./postgraphileOptions');
4-
const pg = require('pg');
4+
const { Pool } = require('pg');
55

66
const schemas = process.env.DATABASE_SCHEMAS
77
? process.env.DATABASE_SCHEMAS.split(',')
88
: ['app_public'];
99

1010
async function main() {
11-
const pgPool = new pg.Pool({
11+
const pgPool = new Pool({
1212
connectionString: process.env.DATABASE_URL,
1313
});
1414
await createPostGraphileSchema(pgPool, schemas, {

0 commit comments

Comments
 (0)