Skip to content

Commit 5f17b27

Browse files
authored
Merge pull request #33 from thecodegram/shaygeko/pub-sub-integration
GCP Pub/Sub integration
2 parents 3347297 + f883f7c commit 5f17b27

File tree

9 files changed

+494
-29
lines changed

9 files changed

+494
-29
lines changed

backend/package-lock.json

Lines changed: 268 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
"gcp-build": "npm install --save-dev && npm run build",
1111
"copy-sql": "cp ./src/db/db_init.sql ./dist/db/db_init.sql",
1212
"tsconfig": "tsc --init",
13-
"test": "mocha"
13+
"test": "mocha -R spec"
1414
},
1515
"keywords": [],
1616
"author": "",
1717
"license": "ISC",
1818
"dependencies": {
1919
"@google-cloud/connect-firestore": "^2.0.2",
2020
"@google-cloud/firestore": "^4.15.1",
21+
"@google-cloud/pubsub": "^4.0.2",
2122
"@google-cloud/storage": "^6.12.0",
2223
"@types/cors": "^2.8.13",
2324
"@types/cron": "^2.0.1",

backend/src/config/corsConfig.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const whitelist = [
1111

1212
export const corsOptions: CorsOptions = {
1313
origin: (origin, callback) => {
14-
console.log(origin);
1514
if (whitelist.includes(origin || '')) {
1615
callback(null, true);
1716
} else {

0 commit comments

Comments
 (0)