Removed unused stripe_customers relationship

no-issue
This commit is contained in:
Fabien O'Carroll 2019-10-10 13:48:20 +07:00
parent 99681e692a
commit 6b4e6fb400

View File

@ -1,24 +1,7 @@
const ghostBookshelf = require('./base');
const Member = ghostBookshelf.Model.extend({
tableName: 'members',
relationships: ['stripe_customers'],
relationshipBelongsTo: {
stripe_customers: 'members_stripe_customers'
},
permittedAttributes(...args) {
return ghostBookshelf.Model.prototype.permittedAttributes.apply(this, args).concat(this.relationships);
},
stripe_customers() {
return this.hasMany('MemberStripeCustomer', 'member_id');
}
}, {
permittedOptions(...args) {
return ghostBookshelf.Model.permittedOptions.apply(this, args).concat(['withRelated']);
}
tableName: 'members'
});
const Members = ghostBookshelf.Collection.extend({