Skip to content

Commit

Permalink
Suspects: Use suspects/edit action where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Nov 2, 2024
1 parent 138b9af commit 89dd113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/chat-plugins/suspect-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const commands: Chat.ChatCommands = {
}
reqData[k] = val;
}
const [out, error] = await LoginServer.request("suspects/add", {
const [out, error] = await LoginServer.request(suspectTests.suspects[format.id] ? "suspects/edit" : "suspects/add", {
format: format.id,
reqs: JSON.stringify(reqData),
url: urlActual,
Expand Down

0 comments on commit 89dd113

Please sign in to comment.