Skip to content

Commit

Permalink
chore(CAL): follow #1428 (#1431)
Browse files Browse the repository at this point in the history
* chore(CAL): follow #1428
  • Loading branch information
WaitSpringQW authored Jul 16, 2024
1 parent 8d94d9b commit bcd3b26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 7 additions & 3 deletions dist/Cat-a-lot/Cat-a-lot.js

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/Cat-a-lot/modules/core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ const catALot = (): void => {
continue;
}
try {
const {parse} = await CAL.api.post({
const {parse} = await CAL.api.get({
...params,
variant,
} as typeof params);
Expand Down Expand Up @@ -390,7 +390,11 @@ const catALot = (): void => {
this.updateCounter();
}
};
CAL.api.post(params).then(callback).catch(handleError);
if (params.action === 'query') {
CAL.api.get(params).then(callback).catch(handleError);
} else {
CAL.api.post(params).then(callback).catch(handleError);
}
};
doCall();
}
Expand Down

0 comments on commit bcd3b26

Please sign in to comment.