Skip to content

Commit

Permalink
DEV: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
justindirose committed Sep 2, 2020
1 parent bd5d9fc commit 9f914c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions assets/javascripts/discourse/models/user-subscription.js.es6
Expand Up @@ -21,20 +21,20 @@ const UserSubscription = EmberObject.extend({

destroy() {
return ajax(`/s/user/subscriptions/${this.id}`, {
method: "delete",
}).then((result) => UserSubscription.create(result));
},
method: "delete"
}).then(result => UserSubscription.create(result));
}
});

UserSubscription.reopenClass({
findAll() {
return ajax("/s/user/subscriptions", { method: "get" }).then((result) =>
result.map((subscription) => {
return ajax("/s/user/subscriptions", { method: "get" }).then(result =>
result.map(subscription => {
subscription.plan = Plan.create(subscription.plan);
return UserSubscription.create(subscription);
})
);
},
}
});

export default UserSubscription;

0 comments on commit 9f914c7

Please sign in to comment.