Skip to content

Commit

Permalink
fix!: retry params
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelyCARDINAL authored Aug 13, 2023
1 parent 68109a3 commit 69d8d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export class MediaWikiApi {
[data?.errors?.[0].code, data?.error?.code].includes('badtoken') ||
['NeedToken', 'WrongToken'].includes(data?.login?.result)
) {
return this.postWithToken(tokenType, data, {
return this.postWithToken(tokenType, ...body, {
tokenName,
retry: retry - 1,
noCache: true,
Expand Down

0 comments on commit 69d8d6d

Please sign in to comment.