Skip to content

Commit

Permalink
use PUT
Browse files Browse the repository at this point in the history
  • Loading branch information
Amy Chen committed Mar 21, 2024
1 parent bbb111c commit 71a0967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/static/js/src/modules/TnthAjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export default { /*global $ */
callback({error: true});
return false;
}
this.sendRequest(`/api/patient/${userId}/triggers/opt_out`, "POST", userId, params, (data) => {
this.sendRequest(`/api/patient/${userId}/triggers/opt_out`, "PUT", userId, params, (data) => {
if (!data || data.error) {
callback({"error": true});
return false;
Expand Down

0 comments on commit 71a0967

Please sign in to comment.