Compare commits

...

2 Commits

Author SHA1 Message Date
20c1fd7be9 Ensure API Response is in English
added English to the API URL to ensure the returned JSON is in English. I'm leaving the Headers language in place, but it is not as reliable
2025-06-29 11:50:29 -04:00
2800d2fb2e sorting now default starting with most recently created 2024-10-04 23:35:00 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ const advancedResults = (model, populate) => async (req, res, next) => {
const sortBy = req.query.sort.split(',').join(' ')
query = query.sort(sortBy)
} else {
query = query.sort('series title')
query = query.sort('-createDate series title')
}
// Pagination

View File

@@ -6,7 +6,7 @@ const steamScraper = async (resData) => {
if (steamId === null || steamId === '') {
return 'Please enter a valid Steam Id'
}
const steamApiUrl = `https://store.steampowered.com/api/appdetails/?appids=${steamId}`
const steamApiUrl = `https://store.steampowered.com/api/appdetails/?appids=${steamId}&l=english`
const steamRatingApiUrl = `https://store.steampowered.com/appreviews/${steamId}?json=1`
const steamWebUrl = `https://store.steampowered.com/app/${steamId}`
try {