DEV: run prettier
This commit is contained in:
parent
bd5d9fc289
commit
9f914c7793
|
@ -21,20 +21,20 @@ const UserSubscription = EmberObject.extend({
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
return ajax(`/s/user/subscriptions/${this.id}`, {
|
return ajax(`/s/user/subscriptions/${this.id}`, {
|
||||||
method: "delete",
|
method: "delete"
|
||||||
}).then((result) => UserSubscription.create(result));
|
}).then(result => UserSubscription.create(result));
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
UserSubscription.reopenClass({
|
UserSubscription.reopenClass({
|
||||||
findAll() {
|
findAll() {
|
||||||
return ajax("/s/user/subscriptions", { method: "get" }).then((result) =>
|
return ajax("/s/user/subscriptions", { method: "get" }).then(result =>
|
||||||
result.map((subscription) => {
|
result.map(subscription => {
|
||||||
subscription.plan = Plan.create(subscription.plan);
|
subscription.plan = Plan.create(subscription.plan);
|
||||||
return UserSubscription.create(subscription);
|
return UserSubscription.create(subscription);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default UserSubscription;
|
export default UserSubscription;
|
||||||
|
|
Loading…
Reference in New Issue