Skip to content

Commit 0f5a8f4

Browse files
committed
Properly read suspect url from request
1 parent 8241340 commit 0f5a8f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/actions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1047,13 +1047,13 @@ export const actions: {[k: string]: QueryHandler} = {
10471047
throw new ActionError("Invalid reqs sent.");
10481048
}
10491049
// sim server should validate this already
1050-
if (!reqs.url?.trim().length) {
1050+
if (!params.url?.trim().length) {
10511051
throw new ActionError("Invalid suspect URL provided.");
10521052
}
10531053
const start = time();
10541054
try {
10551055
await smogonFetch("tools/api/suspect-create", "POST", {
1056-
url: reqs.url,
1056+
url: params.url,
10571057
date: start + "",
10581058
reqs: JSON.stringify(reqs),
10591059
format: id,

0 commit comments

Comments
 (0)