Skip to content

Commit

Permalink
updating api location
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jun 25, 2018
1 parent eebf9da commit ff3755f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/models/plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default DS.Model.extend({
stripePlan: DS.belongsTo('stripe-plan', {
async: true
}),
scopes: DS.hasMany('permission', {
permissions: DS.hasMany('permission', {
async: true
}),
lowValue: attr('boolean'),
Expand Down
6 changes: 3 additions & 3 deletions app/pods/components/plan-item/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Component from '@ember/component';

export default Component.extend({

classNames: ['frame', 'flex-auto', 'flex', 'flex-column'],
classNames: ['frame', 'flex-auto', 'flex', 'flex-column'],

scopes: computed('plan.scopes[email protected]', function(){
return this.get('plan.scopes').filter((scope) => {
scopes: computed('plan.permissions[email protected]', function(){
return this.get('plan.permissions').filter((scope) => {
if(this.showPaidOnly){
return scope.get('paidFor');
}
Expand Down
2 changes: 1 addition & 1 deletion app/pods/plans/payment/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default Controller.extend({
return $.ajax({
method: 'POST',
dataType: 'json',
url: `/api/stripePlans/subscribe`,
url: `/v1/stripe-plans/subscribe`,
data: {
stripePlanId: this.get('model.plan.stripePlan.id'),
internalPlanId: this.get('model.plan.id'),
Expand Down

0 comments on commit ff3755f

Please sign in to comment.