Skip to content

Commit 830eab7

Browse files
committed
chore: pg package upgrade
1 parent fe69d19 commit 830eab7

6 files changed

Lines changed: 6 additions & 7079 deletions

File tree

Procfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
web: cd ./dist && yarn start:server
2-
worker: cd ./dist && yarn start:worker
1+
web: npm run start:server
2+
worker: npm run start:worker

app.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,10 @@
3535
"addons": [
3636
{
3737
"plan": "heroku-postgresql:hobby-dev",
38-
"options": {
39-
"version": "9.5"
40-
},
4138
"as": "POSTGRES"
4239
},
4340
{
4441
"plan": "heroku-redis:hobby-dev",
45-
"options": {
46-
"version": "3.2"
47-
},
4842
"as": "REDIS"
4943
},
5044
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"graphql": "^15.3.0",
5959
"jsonwebtoken": "^8.5.1",
6060
"nodemailer": "^6.3.1",
61-
"pg": "^7.17.1",
61+
"pg": "^8.4.1",
6262
"reflect-metadata": "^0.1.13",
6363
"ts-node": "^9.0.0",
6464
"type-graphql": "^1.1.0",

src/utils/Queue.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const { REDIS_URL } = defaults;
66

77
const redisOptions = {
88
host: REDIS_URL,
9-
port: 6379,
109
};
1110

1211
const getQueueData = (job: any) => {

src/worker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import { config } from 'dotenv';
2+
13
import { defaults, logger } from './utils/globalMethods';
24
import Queue from './utils/Queue';
35
import { createTypeormConn } from './utils/typeORMConn';
46

57
(async (): Promise<void> => {
8+
config();
69
const { APP_NAME } = defaults;
710
await createTypeormConn();
811

0 commit comments

Comments
 (0)