parent
33008b0b47
commit
e8621cf5d1
|
@ -21,7 +21,7 @@ const AdminSubscription = EmberObject.extend({
|
||||||
|
|
||||||
destroy(refund) {
|
destroy(refund) {
|
||||||
const data = {
|
const data = {
|
||||||
refund: refund,
|
refund,
|
||||||
};
|
};
|
||||||
return ajax(`/s/admin/subscriptions/${this.id}`, {
|
return ajax(`/s/admin/subscriptions/${this.id}`, {
|
||||||
method: "delete",
|
method: "delete",
|
||||||
|
|
|
@ -3,8 +3,8 @@ import { ajax } from "discourse/lib/ajax";
|
||||||
export default {
|
export default {
|
||||||
finalize(transaction, plan) {
|
finalize(transaction, plan) {
|
||||||
const data = {
|
const data = {
|
||||||
transaction: transaction,
|
transaction,
|
||||||
plan: plan,
|
plan,
|
||||||
};
|
};
|
||||||
|
|
||||||
return ajax("/s/finalize", { method: "post", data });
|
return ajax("/s/finalize", { method: "post", data });
|
||||||
|
|
Loading…
Reference in New Issue