Skip to content

Commit

Permalink
Merge pull request #10 from lovelyCARDINAL/master-1
Browse files Browse the repository at this point in the history
fix!: retry params
  • Loading branch information
dragon-fish authored Aug 14, 2023
2 parents 68109a3 + 32408a1 commit dbf1146
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 dbf1146

Please sign in to comment.