fix snake case

This commit is contained in:
Rimian Perkins
2019-09-13 13:46:32 +10:00
parent 68b4d07a94
commit 404bede398
8 changed files with 32 additions and 14 deletions
@@ -3,9 +3,9 @@ import { ajax } from "discourse/lib/ajax";
export default Ember.Controller.extend({
actions: {
stripePaymentHandler(paymentMethodId, amount) {
stripePaymentHandler(data) {
return ajax("/patrons/patrons", {
data: { paymentMethodId, amount },
data,
method: "post"
}).catch(() => {
return { error: "An error occured while submitting the form." };