Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft Collections #71

Merged
merged 4 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: npm test

- name: Upload HTML Report
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.1.0
with:
name: html-report
path: newman/*.html
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/newman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ jobs:
- run: npm install
- run: npm run generateoas
- run: npm start & npx wait-on http://localhost:3000
- run: npm test

- run: npm test
15 changes: 3 additions & 12 deletions fly.production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ primary_region = "sin"
[build]
image = "ghcr.io/srikanthlogic/google-play-api:main"

[services]
[services.http]
ports = ["http"]

[http_service]
protocol = "tcp"
internal_port = 3000
Expand All @@ -22,14 +18,9 @@ primary_region = "sin"
processes = ["app"]
[http_service.concurrency]
type = "requests"
soft_limit = 200
hard_limit = 250

[[services.ports]]
handlers = ["http"]
port = 80
force_https = true # optional
soft_limit = 400
hard_limit = 500

[env]
COUNTRY_OF_QUERY = "IN"
LOGGING = true
LOGGING = true
14 changes: 2 additions & 12 deletions fly.staging.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ primary_region = "sin"
[build]
image = "ghcr.io/srikanthlogic/google-play-api:dev"

[services]
[services.http]
ports = ["http"]

[http_service]
protocol = "tcp"
internal_port = 3000
Expand All @@ -22,14 +18,8 @@ primary_region = "sin"
processes = ["app"]
[http_service.concurrency]
type = "requests"
soft_limit = 200
hard_limit = 250

[[services.ports]]
handlers = ["http"]
port = 80
force_https = true # optional

soft_limit = 400
hard_limit = 500

[env]
COUNTRY_OF_QUERY = "IN"
Expand Down
8 changes: 8 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ router.get('/categories/', async (req, res, next) => {
}
});

/* Collection list */
router.get('/collections/', async (req, res, next) => {
try {
res.json(Object.keys(gplay.collection));
} catch (error) {
next(error); // Pass the error to Express's error-handling middleware
}
});

function anonymizeReplyText(replyText, userName) {
const userPlaceholder = '<<USER>>';
Expand Down