From eff718c804aa9e76b7ea44689c15282156297447 Mon Sep 17 00:00:00 2001 From: Natalie Rose Date: Mon, 17 Aug 2026 15:43:41 +1000 Subject: [PATCH] Pass params through (even if the method does not have params) --- lib/endpoints/captcha.ts | 2 +- lib/endpoints/empire.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/endpoints/captcha.ts b/lib/endpoints/captcha.ts index 71a059b..5449911 100644 --- a/lib/endpoints/captcha.ts +++ b/lib/endpoints/captcha.ts @@ -13,7 +13,7 @@ class Captcha extends Endpoint { } fetch(params: C.FetchParams = {}) { - return this.callWithSession('fetch', {}); + return this.callWithSession('fetch', params); } solve(params: C.SolveParams) { diff --git a/lib/endpoints/empire.ts b/lib/endpoints/empire.ts index 54af84f..ecdb60d 100644 --- a/lib/endpoints/empire.ts +++ b/lib/endpoints/empire.ts @@ -13,15 +13,15 @@ class Empire extends Endpoint { } fetchCaptcha(params: E.FetchCaptchaParams = {}) { - return this.callWithSession('fetch_captcha', {}); + return this.callWithSession('fetch_captcha', params); } viewBoosts(params: E.ViewBoostsParams = {}) { - return this.callWithSession('view_boosts', {}); + return this.callWithSession('view_boosts', params); } getStatus(params: E.GetStatusParams = {}) { - return this.callWithSession('get_status', {}); + return this.callWithSession('get_status', params); } login(params: E.LoginParams) { -- 2.51.2