DEV: run prettier

This commit is contained in:
Justin DiRose 2020-09-01 20:35:53 -05:00
parent bd5d9fc289
commit 9f914c7793
No known key found for this signature in database
GPG Key ID: 1855147B46436A53
1 changed files with 6 additions and 6 deletions

View File

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