fix(games/asa): add wildcard option to eos usage (#739)

* fix(games/asa): add wildcard option to eos usage

* docs: add CHANGELOG.md line
This commit is contained in:
CosminPerRam 2025-09-15 14:33:01 +03:00 committed by GitHub
parent bff0c334e9
commit b37acf062a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View file

@ -8,6 +8,7 @@ export default class asa extends Epic {
this.clientId = 'xyza7891muomRmynIIHaJB9COBKkwj6n'
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
this.wildcardMatchmaking = true
}
async run (state) {

View file

@ -16,6 +16,7 @@ export default class Epic extends Core {
this.deploymentId = null
this.epicApi = 'https://api.epicgames.dev'
this.authByExternalToken = false // Some games require a client access token to POST to the matchmaking endpoint.
this.wildcardMatchmaking = false
this.deviceIdAccessToken = null
this.accessToken = null
@ -96,7 +97,11 @@ export default class Epic extends Core {
}
async queryInfo (state) {
const url = `${this.epicApi}/matchmaking/v1/${this.deploymentId}/filter`
let baseUrl = this.epicApi
if (this.wildcardMatchmaking) {
baseUrl = `${baseUrl}/wildcard`
}
const url = `${baseUrl}/matchmaking/v1/${this.deploymentId}/filter`
const body = {
criteria: [
{