DEV: Update code for eslint object-shorthand-rule (#93)

See 4f7aba06c0
This commit is contained in:
Martin Brennan 2021-11-10 11:00:39 +10:00 committed by GitHub
parent 33008b0b47
commit e8621cf5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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 });