Merge pull request #41 from CedricFinance/patch-1

Compute the right URL for SteamAPI MediaDB entries
This commit is contained in:
Moritz Jung 2022-08-29 12:43:06 +02:00 committed by GitHub
commit 2e89905a23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ export class SteamAPI extends APIModel {
englishTitle: result.name,
year: (new Date(result.release_date.date)).getFullYear().toString(),
dataSource: this.apiName,
url: `https://store.steampowered.com/app/${result.id}`,
url: `https://store.steampowered.com/app/${result.steam_appid}`,
id: result.steam_appid,
genres: result.genres?.map((x: any) => x.description) ?? [],