Skip to content

Commit

Permalink
Modify params for suspect formatids
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Oct 22, 2024
1 parent 853413e commit 792e493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ export const actions: {[k: string]: QueryHandler} = {
if (this.getIp() !== Config.restartip) {
throw new ActionError("Access denied.");
}
const id = toID(params.formatid);
const id = toID(params.format);
if (!id) throw new ActionError("No format ID specified.");
if (!params.reqs) {
throw new ActionError("Reqs not specified.");
Expand All @@ -1036,7 +1036,7 @@ export const actions: {[k: string]: QueryHandler} = {
if (this.getIp() !== Config.restartip) {
throw new ActionError("Access denied.");
}
const id = toID(params.formatid);
const id = toID(params.format);
if (!id) throw new ActionError("No format ID specified.");
if (!suspects[id]) throw new ActionError("There is no ongoing suspect for " + id);
delete suspects[id];
Expand Down

0 comments on commit 792e493

Please sign in to comment.