mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
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:
parent
bff0c334e9
commit
b37acf062a
3 changed files with 8 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue